home *** CD-ROM | disk | FTP | other *** search
- /* A lexical scanner generated by flex */
-
- #define FLEX_SCANNER
-
- #include <stdio.h>
-
-
- /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
- #ifdef c_plusplus
- #ifndef __cplusplus
- #define __cplusplus
- #endif
- #endif
-
-
- #ifdef __cplusplus
-
- #include <stdlib.h>
- #include <unistd.h>
-
- /* Use prototypes in function declarations. */
- #define YY_USE_PROTOS
-
- /* The "const" storage-class-modifier is valid. */
- #define YY_USE_CONST
-
- #else /* ! __cplusplus */
-
- #ifdef __STDC__
-
- #define YY_USE_PROTOS
- #define YY_USE_CONST
-
- #endif /* __STDC__ */
- #endif /* ! __cplusplus */
-
-
- #ifdef __TURBOC__
- #define YY_USE_CONST
- #endif
-
-
- #ifndef YY_USE_CONST
- #ifndef const
- #define const
- #endif
- #endif
-
-
- #ifdef YY_USE_PROTOS
- #define YY_PROTO(proto) proto
- #else
- #define YY_PROTO(proto) ()
- #endif
-
- /* Returned upon end-of-file. */
- #define YY_NULL 0
-
- /* Promotes a possibly negative, possibly signed char to an unsigned
- * integer for use as an array index. If the signed char is negative,
- * we want to instead treat it as an 8-bit unsigned char, hence the
- * double cast.
- */
- #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
-
- /* Enter a start condition. This macro really ought to take a parameter,
- * but we do it the disgusting crufty way forced on us by the ()-less
- * definition of BEGIN.
- */
- #define BEGIN yy_start = 1 + 2 *
-
- /* Translate the current start state into a value that can be later handed
- * to BEGIN to return to the state.
- */
- #define YY_START ((yy_start - 1) / 2)
-
- /* Action number for EOF rule of a given start state. */
- #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
-
- /* Special action meaning "start processing a new file". Now included
- * only for backward compatibility with previous versions of flex.
- */
- #define YY_NEW_FILE yyrestart( yyin )
-
- #define YY_END_OF_BUFFER_CHAR 0
-
- /* Size of default input buffer. */
- #define YY_BUF_SIZE 16384
-
- typedef struct yy_buffer_state *YY_BUFFER_STATE;
-
- extern int yyleng;
- extern FILE *yyin, *yyout;
-
- #ifdef __cplusplus
- extern "C" {
- #endif
- extern int yywrap YY_PROTO(( void ));
- #ifdef __cplusplus
- }
- #endif
-
- #define EOB_ACT_CONTINUE_SCAN 0
- #define EOB_ACT_END_OF_FILE 1
- #define EOB_ACT_LAST_MATCH 2
-
- /* The funky do-while in the following #define is used to turn the definition
- * int a single C statement (which needs a semi-colon terminator). This
- * avoids problems with code like:
- *
- * if ( condition_holds )
- * yyless( 5 );
- * else
- * do_something_else();
- *
- * Prior to using the do-while the compiler would get upset at the
- * "else" because it interpreted the "if" statement as being all
- * done when it reached the ';' after the yyless() call.
- */
-
- /* Return all but the first 'n' matched characters back to the input stream. */
-
- #define yyless(n) \
- do \
- { \
- /* Undo effects of setting up yytext. */ \
- *yy_cp = yy_hold_char; \
- yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
- YY_DO_BEFORE_ACTION; /* set up yytext again */ \
- } \
- while ( 0 )
-
- #define unput(c) yyunput( c, yytext_ptr )
-
-
- struct yy_buffer_state
- {
- FILE *yy_input_file;
-
- char *yy_ch_buf; /* input buffer */
- char *yy_buf_pos; /* current position in input buffer */
-
- /* Size of input buffer in bytes, not including room for EOB
- * characters.
- */
- int yy_buf_size;
-
- /* Number of characters read into yy_ch_buf, not including EOB
- * characters.
- */
- int yy_n_chars;
-
- /* Whether this is an "interactive" input source; if so, and
- * if we're using stdio for input, then we want to use getc()
- * instead of fread(), to make sure we stop fetching input after
- * each newline.
- */
- int yy_is_interactive;
-
- /* Whether to try to fill the input buffer when we reach the
- * end of it.
- */
- int yy_fill_buffer;
-
- /* Whether we've seen an EOF on this buffer. */
- int yy_eof_status;
- #define EOF_NOT_SEEN 0
- /* "Pending" happens when the EOF has been seen but there's still
- * some text to process. Note that when we actually see the EOF,
- * we switch the status back to "not seen" (via yyrestart()), so
- * that the user can continue scanning by just pointing yyin at
- * a new input file.
- */
- #define EOF_PENDING 1
- };
-
- static YY_BUFFER_STATE yy_current_buffer = 0;
-
- /* We provide macros for accessing buffer states in case in the
- * future we want to put the buffer states in a more general
- * "scanner state".
- */
- #define YY_CURRENT_BUFFER yy_current_buffer
-
-
- /* yy_hold_char holds the character lost when yytext is formed. */
- static char yy_hold_char;
-
- static int yy_n_chars; /* number of characters read into yy_ch_buf */
-
-
- int yyleng;
-
- /* Points to current character in buffer. */
- static char *yy_c_buf_p = (char *) 0;
- static int yy_init = 1; /* whether we need to initialize */
- static int yy_start = 0; /* start state number */
-
- /* Flag which is used to allow yywrap()'s to do buffer switches
- * instead of setting up a fresh yyin. A bit of a hack ...
- */
- static int yy_did_buffer_switch_on_eof;
-
- static void yyunput YY_PROTO(( int c, char *buf_ptr ));
- void yyrestart YY_PROTO(( FILE *input_file ));
- void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
- void yy_load_buffer_state YY_PROTO(( void ));
- YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
- void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
- void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
-
- static int yy_start_stack_ptr = 0;
- static int yy_start_stack_depth = 0;
- static int *yy_start_stack = 0;
- static void yy_push_state YY_PROTO(( int new_state ));
- static void yy_pop_state YY_PROTO(( void ));
- static int yy_top_state YY_PROTO(( void ));
-
- #ifndef yytext_ptr
- static void yy_flex_strcpy YY_PROTO(( char *, const char * ));
- #endif
-
- static void *yy_flex_alloc YY_PROTO(( unsigned int ));
- static void *yy_flex_realloc YY_PROTO(( void *ptr, unsigned int ));
- static void yy_flex_free YY_PROTO(( void * ));
-
- #define yy_new_buffer yy_create_buffer
-
- #define INITIAL 0
- #define SCRIPT 1
- #define EXPRESSION 2
- #define BOTH 3
- #define DEFSYMEXP 4
- #define MRI 5
- typedef unsigned char YY_CHAR;
- typedef int yy_state_type;
- FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
- extern char *yytext;
- #define yytext_ptr yytext
-
- #ifdef __cplusplus
- static int yyinput YY_PROTO(( void ));
- #else
- static int input YY_PROTO(( void ));
- #endif
-
- static yy_state_type yy_get_previous_state YY_PROTO(( void ));
- static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
- static int yy_get_next_buffer YY_PROTO(( void ));
- static void yy_fatal_error YY_PROTO(( const char msg[] ));
-
- /* Done after the current pattern has been matched and before the
- * corresponding action - sets up yytext.
- */
- #define YY_DO_BEFORE_ACTION \
- yytext_ptr = yy_bp; \
- yyleng = yy_cp - yy_bp; \
- yy_hold_char = *yy_cp; \
- *yy_cp = '\0'; \
- yy_c_buf_p = yy_cp;
-
- #define YY_END_OF_BUFFER 130
- static const short int yy_accept[826] =
- { 0,
- 0, 0, 122, 122, 0, 0, 0, 0, 0, 0,
- 0, 0, 130, 129, 127, 126, 124, 125, 32, 127,
- 122, 38, 29, 44, 43, 34, 35, 28, 36, 122,
- 37, 8, 8, 45, 46, 39, 40, 27, 33, 8,
- 8, 8, 8, 8, 8, 122, 122, 122, 122, 122,
- 122, 122, 122, 122, 122, 122, 10, 9, 8, 88,
- 86, 122, 42, 30, 41, 31, 128, 126, 125, 32,
- 128, 121, 38, 29, 44, 43, 34, 35, 28, 36,
- 121, 37, 8, 8, 45, 46, 39, 40, 27, 33,
- 8, 8, 8, 121, 121, 10, 9, 8, 121, 42,
-
- 30, 41, 31, 121, 8, 8, 8, 8, 8, 8,
- 8, 8, 121, 121, 121, 121, 121, 121, 121, 121,
- 121, 121, 121, 8, 8, 88, 86, 4, 3, 2,
- 4, 5, 4, 93, 94, 120, 95, 28, 120, 8,
- 8, 40, 8, 8, 8, 8, 8, 8, 120, 120,
- 120, 120, 120, 120, 8, 8, 8, 8, 120, 120,
- 120, 120, 15, 0, 123, 122, 8, 8, 26, 24,
- 22, 20, 21, 1, 23, 8, 122, 18, 17, 14,
- 16, 19, 8, 8, 122, 91, 122, 122, 122, 122,
- 8, 122, 122, 122, 122, 122, 122, 122, 122, 122,
-
- 122, 122, 122, 122, 122, 122, 122, 122, 122, 122,
- 122, 122, 122, 122, 122, 122, 8, 122, 122, 122,
- 25, 13, 121, 6, 6, 20, 21, 23, 8, 7,
- 7, 8, 0, 14, 8, 7, 7, 7, 8, 121,
- 91, 7, 8, 121, 121, 121, 8, 121, 8, 8,
- 8, 8, 8, 121, 121, 121, 121, 8, 121, 121,
- 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
- 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
- 121, 8, 121, 121, 4, 4, 4, 4, 120, 6,
- 6, 95, 8, 7, 7, 7, 8, 120, 8, 7,
-
- 120, 7, 120, 120, 120, 120, 120, 120, 120, 8,
- 120, 120, 120, 120, 120, 120, 120, 120, 11, 12,
- 122, 8, 122, 122, 122, 122, 122, 122, 8, 122,
- 122, 122, 122, 122, 122, 73, 122, 122, 122, 122,
- 122, 57, 122, 122, 122, 122, 122, 122, 122, 122,
- 122, 122, 122, 122, 122, 122, 122, 122, 122, 89,
- 87, 122, 121, 121, 7, 121, 8, 121, 121, 121,
- 121, 121, 8, 121, 121, 121, 121, 121, 8, 121,
- 121, 121, 121, 121, 121, 73, 121, 121, 121, 121,
- 121, 57, 121, 121, 121, 121, 121, 121, 121, 121,
-
- 121, 121, 121, 121, 121, 89, 87, 4, 120, 120,
- 120, 120, 120, 96, 120, 120, 120, 120, 120, 120,
- 120, 120, 120, 120, 111, 120, 120, 120, 120, 120,
- 120, 122, 52, 122, 122, 79, 122, 83, 122, 122,
- 122, 122, 69, 122, 122, 122, 122, 84, 122, 122,
- 77, 122, 54, 122, 122, 122, 122, 122, 122, 76,
- 122, 122, 122, 122, 122, 122, 122, 122, 122, 121,
- 52, 121, 121, 54, 121, 121, 121, 121, 121, 79,
- 121, 83, 121, 121, 121, 69, 121, 121, 121, 121,
- 84, 121, 121, 77, 121, 121, 121, 121, 121, 121,
-
- 76, 121, 121, 121, 121, 121, 121, 8, 120, 120,
- 120, 100, 99, 120, 108, 103, 106, 120, 120, 109,
- 120, 120, 112, 120, 117, 113, 115, 120, 118, 122,
- 51, 49, 122, 122, 122, 82, 53, 75, 122, 63,
- 122, 62, 122, 122, 122, 122, 122, 122, 122, 122,
- 122, 122, 78, 122, 122, 122, 122, 122, 122, 121,
- 51, 121, 121, 121, 121, 121, 49, 121, 121, 82,
- 53, 75, 121, 63, 121, 62, 121, 121, 121, 121,
- 121, 121, 121, 121, 121, 78, 121, 121, 121, 120,
- 101, 98, 120, 108, 108, 105, 120, 120, 120, 120,
-
- 117, 117, 114, 122, 122, 122, 122, 122, 122, 50,
- 47, 122, 81, 48, 61, 122, 122, 122, 122, 58,
- 122, 74, 59, 122, 122, 121, 121, 81, 58, 121,
- 121, 121, 121, 121, 121, 50, 47, 121, 48, 61,
- 121, 121, 121, 121, 121, 74, 59, 120, 120, 107,
- 104, 120, 120, 116, 122, 122, 122, 64, 122, 90,
- 80, 122, 85, 92, 122, 122, 122, 70, 122, 122,
- 121, 64, 121, 121, 121, 121, 121, 121, 90, 80,
- 121, 85, 92, 121, 121, 70, 120, 120, 120, 120,
- 110, 122, 122, 122, 122, 122, 122, 68, 122, 119,
-
- 122, 110, 121, 119, 121, 121, 121, 121, 121, 121,
- 121, 68, 110, 97, 102, 119, 122, 122, 122, 122,
- 122, 122, 122, 122, 121, 121, 121, 121, 121, 121,
- 121, 121, 122, 122, 122, 122, 122, 60, 122, 122,
- 121, 121, 121, 121, 121, 121, 121, 60, 122, 122,
- 122, 72, 122, 122, 122, 121, 121, 121, 121, 121,
- 72, 121, 66, 122, 122, 122, 122, 122, 121, 121,
- 66, 121, 121, 121, 122, 122, 71, 122, 122, 121,
- 121, 121, 121, 71, 122, 122, 56, 55, 56, 55,
- 121, 121, 122, 122, 121, 121, 122, 122, 121, 121,
-
- 122, 122, 121, 121, 122, 122, 121, 121, 122, 122,
- 121, 121, 122, 122, 121, 121, 65, 122, 65, 121,
- 122, 121, 67, 67, 0
- } ;
-
- static const int yy_ec[256] =
- { 0,
- 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
- 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 2, 5, 6, 1, 7, 8, 9, 1, 10,
- 11, 12, 13, 14, 15, 16, 17, 18, 19, 19,
- 19, 19, 19, 19, 19, 19, 19, 20, 21, 22,
- 23, 24, 25, 1, 26, 27, 28, 29, 30, 31,
- 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
- 42, 43, 44, 45, 46, 47, 16, 48, 49, 50,
- 51, 16, 52, 1, 53, 1, 54, 55, 56, 57,
-
- 58, 59, 60, 61, 62, 16, 63, 64, 65, 66,
- 67, 68, 16, 69, 70, 71, 72, 16, 16, 73,
- 16, 74, 75, 76, 77, 78, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1
- } ;
-
- static const int yy_meta[79] =
- { 0,
- 1, 1, 2, 1, 1, 1, 3, 1, 1, 1,
- 1, 1, 3, 4, 3, 5, 5, 6, 6, 3,
- 1, 1, 4, 1, 1, 6, 6, 6, 6, 6,
- 6, 5, 5, 5, 5, 6, 5, 6, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 3, 3, 5, 6, 6, 6, 6, 6, 6, 5,
- 5, 5, 6, 5, 6, 5, 5, 5, 5, 5,
- 5, 5, 6, 5, 1, 1, 1, 3
- } ;
-
- static const short int yy_base[838] =
- { 0,
- 0, 0, 0, 0, 78, 0, 150, 0, 217, 0,
- 295, 0, 1533, 1534, 1534, 1534, 1534, 1534, 1509, 1525,
- 356, 1534, 149, 1534, 1534, 1507, 1506, 0, 1505, 0,
- 147, 398, 1454, 0, 1534, 138, 1503, 139, 1534, 362,
- 137, 124, 346, 126, 358, 1482, 1487, 1484, 145, 170,
- 163, 155, 1479, 1475, 388, 1494, 0, 0, 323, 1461,
- 1449, 1455, 1534, 354, 1534, 0, 1534, 1534, 1534, 1493,
- 1509, 454, 1534, 370, 1534, 1534, 1491, 1490, 1534, 1489,
- 0, 382, 496, 1438, 1534, 1534, 189, 1487, 192, 1534,
- 552, 413, 414, 408, 1475, 1534, 1534, 433, 1446, 1534,
-
- 400, 1534, 0, 600, 428, 429, 501, 468, 558, 602,
- 482, 607, 1464, 1469, 1466, 409, 371, 439, 357, 1461,
- 1457, 603, 1476, 624, 539, 1443, 1431, 672, 1534, 1534,
- 0, 1534, 714, 1534, 1534, 762, 0, 1534, 0, 0,
- 1426, 1534, 804, 470, 462, 450, 521, 547, 368, 1472,
- 1454, 1450, 1465, 1451, 536, 612, 568, 626, 104, 1439,
- 1423, 1433, 1534, 1484, 1534, 0, 0, 1416, 1534, 1534,
- 1534, 0, 0, 1534, 0, 0, 642, 1465, 1534, 0,
- 1534, 1464, 336, 359, 1452, 0, 1445, 1439, 406, 1453,
- 443, 1452, 1436, 1443, 1439, 1435, 1437, 1439, 633, 1436,
-
- 1435, 1432, 1434, 1423, 504, 1436, 1424, 1438, 1427, 1440,
- 514, 1425, 1414, 1437, 1418, 1418, 492, 1394, 1399, 1384,
- 1534, 1534, 0, 852, 1384, 1534, 1534, 0, 1383, 1382,
- 1534, 1534, 645, 1534, 639, 667, 709, 0, 0, 1420,
- 0, 710, 722, 1405, 1415, 1401, 729, 1376, 791, 659,
- 0, 830, 747, 1409, 1403, 573, 1417, 858, 1416, 1400,
- 1407, 1403, 1399, 1401, 1403, 678, 1400, 1399, 1396, 1398,
- 512, 1401, 1389, 1403, 1392, 1405, 596, 1390, 1403, 1384,
- 1384, 866, 1360, 1365, 0, 1351, 0, 0, 0, 919,
- 1350, 0, 566, 648, 686, 0, 0, 1388, 757, 1387,
-
- 1391, 1376, 1374, 1391, 1378, 1386, 1387, 1385, 1366, 768,
- 1349, 1353, 1340, 1338, 1353, 1341, 1348, 1348, 1534, 1534,
- 1363, 425, 1370, 1373, 1370, 1355, 1345, 1362, 347, 1354,
- 1333, 1333, 1340, 1311, 1292, 0, 1300, 1296, 1289, 1302,
- 1301, 0, 1292, 1286, 1293, 1289, 1296, 1286, 1283, 1278,
- 1295, 1280, 1277, 1278, 1290, 1276, 1281, 1285, 1249, 0,
- 0, 1257, 1296, 1273, 885, 1280, 769, 1266, 1270, 1279,
- 1241, 1249, 916, 1278, 1275, 1260, 1254, 1276, 790, 1273,
- 1257, 1262, 1272, 1269, 1250, 0, 1258, 1254, 1247, 1260,
- 1259, 0, 1245, 1247, 1251, 1241, 1238, 1233, 1249, 1229,
-
- 1223, 1219, 1218, 1223, 1227, 0, 0, 861, 975, 1218,
- 656, 1227, 1215, 0, 1217, 1209, 1224, 1222, 1221, 1213,
- 1204, 1209, 1180, 1178, 0, 1180, 1173, 1186, 1184, 1183,
- 1169, 1202, 0, 1199, 1201, 0, 1191, 0, 1190, 1195,
- 1188, 1183, 0, 1186, 1200, 1188, 1182, 0, 1182, 1181,
- 0, 1182, 0, 1184, 1197, 1188, 1175, 1183, 1185, 0,
- 1190, 1183, 1171, 1175, 1169, 1174, 1177, 1142, 1138, 1167,
- 0, 1164, 1162, 0, 1169, 1151, 1121, 1117, 1147, 0,
- 1137, 0, 1136, 1135, 1130, 0, 1133, 1147, 1135, 1129,
- 0, 1129, 1128, 0, 1129, 1131, 1136, 1123, 1131, 1133,
-
- 0, 1138, 1131, 1119, 1118, 1128, 1131, 897, 1123, 1115,
- 1119, 0, 0, 1131, 1034, 0, 0, 1113, 1121, 0,
- 1126, 1089, 0, 1098, 1111, 0, 0, 1082, 0, 1104,
- 0, 0, 1106, 1118, 1117, 0, 0, 0, 1093, 0,
- 1116, 0, 1111, 1094, 1116, 1112, 1101, 1094, 1112, 1108,
- 1098, 1090, 0, 1098, 1082, 1100, 1081, 1052, 1059, 1068,
- 0, 1078, 1078, 1075, 1033, 1045, 0, 1060, 1072, 0,
- 0, 0, 1048, 0, 1071, 0, 1066, 1049, 1071, 1057,
- 1050, 1068, 1064, 1059, 1051, 0, 1044, 1062, 1043, 1041,
- 0, 1048, 1040, 0, 1188, 0, 1056, 1057, 1010, 1010,
-
- 0, 1265, 0, 1035, 1033, 1025, 1048, 1048, 1045, 0,
- 0, 1029, 0, 0, 1020, 1023, 1041, 1017, 1030, 1015,
- 1026, 0, 0, 995, 1012, 1019, 1034, 0, 1009, 990,
- 1007, 1008, 1000, 1024, 1021, 0, 0, 1005, 0, 996,
- 998, 1011, 984, 989, 986, 0, 0, 981, 985, 0,
- 0, 979, 952, 0, 992, 993, 980, 0, 979, 0,
- 0, 541, 0, 0, 989, 973, 983, 0, 957, 953,
- 983, 0, 979, 953, 949, 981, 968, 967, 0, 0,
- 690, 0, 0, 971, 955, 0, 968, 968, 966, 937,
- 0, 946, 963, 951, 945, 947, 952, 0, 955, 0,
-
- 925, 0, 950, 0, 914, 926, 943, 931, 925, 927,
- 932, 0, 0, 0, 0, 0, 925, 929, 925, 933,
- 915, 913, 927, 897, 918, 889, 902, 906, 902, 911,
- 889, 884, 877, 889, 878, 883, 875, 0, 876, 846,
- 872, 843, 855, 862, 851, 854, 848, 0, 841, 849,
- 836, 0, 847, 842, 807, 827, 793, 806, 821, 808,
- 0, 820, 0, 800, 790, 794, 793, 756, 772, 744,
- 0, 766, 754, 759, 749, 774, 0, 753, 717, 742,
- 712, 725, 749, 0, 720, 726, 0, 0, 0, 0,
- 718, 724, 711, 720, 699, 698, 696, 685, 682, 678,
-
- 690, 686, 659, 643, 629, 625, 610, 609, 579, 568,
- 136, 168, 362, 412, 431, 456, 0, 463, 0, 516,
- 529, 547, 0, 0, 1534, 1342, 1348, 1352, 1356, 593,
- 1358, 1362, 1368, 1374, 1380, 1386, 1392
- } ;
-
- static const short int yy_def[838] =
- { 0,
- 826, 826, 825, 3, 825, 5, 5, 7, 825, 9,
- 825, 11, 825, 825, 825, 825, 825, 825, 825, 827,
- 828, 825, 825, 825, 825, 825, 828, 828, 828, 828,
- 828, 828, 32, 828, 825, 825, 828, 825, 825, 32,
- 32, 32, 32, 32, 32, 828, 828, 828, 828, 828,
- 828, 828, 828, 828, 828, 828, 828, 828, 32, 828,
- 828, 828, 825, 825, 825, 828, 825, 825, 825, 825,
- 827, 829, 825, 825, 825, 825, 825, 825, 825, 825,
- 829, 829, 825, 83, 825, 825, 825, 825, 825, 825,
- 829, 91, 91, 829, 829, 825, 825, 91, 829, 825,
-
- 825, 825, 829, 829, 830, 830, 104, 104, 104, 104,
- 104, 104, 829, 829, 829, 829, 829, 829, 829, 829,
- 829, 829, 829, 104, 104, 829, 829, 831, 825, 825,
- 831, 825, 831, 825, 825, 832, 833, 825, 832, 83,
- 83, 825, 832, 143, 143, 143, 143, 143, 832, 832,
- 832, 832, 832, 832, 143, 143, 143, 143, 832, 832,
- 832, 832, 825, 827, 825, 828, 32, 32, 825, 825,
- 825, 828, 828, 825, 828, 828, 32, 825, 825, 828,
- 825, 825, 32, 32, 828, 828, 828, 828, 828, 828,
- 32, 828, 828, 828, 828, 828, 828, 828, 828, 828,
-
- 828, 828, 828, 828, 828, 828, 828, 828, 828, 828,
- 828, 828, 828, 828, 828, 828, 32, 828, 828, 828,
- 825, 825, 829, 829, 224, 825, 825, 829, 83, 83,
- 825, 825, 106, 825, 91, 91, 91, 829, 829, 829,
- 829, 91, 91, 829, 829, 829, 91, 829, 104, 104,
- 106, 104, 104, 829, 829, 829, 829, 104, 829, 829,
- 829, 829, 829, 829, 829, 829, 829, 829, 829, 829,
- 829, 829, 829, 829, 829, 829, 829, 829, 829, 829,
- 829, 104, 829, 829, 831, 133, 133, 831, 832, 832,
- 290, 833, 143, 143, 143, 832, 832, 832, 143, 832,
-
- 832, 832, 832, 832, 832, 832, 832, 832, 832, 143,
- 832, 832, 832, 832, 832, 832, 832, 832, 825, 825,
- 828, 32, 828, 828, 828, 828, 828, 828, 32, 828,
- 828, 828, 828, 828, 828, 828, 828, 828, 828, 828,
- 828, 828, 828, 828, 828, 828, 828, 828, 828, 828,
- 828, 828, 828, 828, 828, 828, 828, 828, 828, 828,
- 828, 828, 104, 829, 91, 829, 91, 829, 829, 829,
- 829, 829, 104, 829, 829, 829, 829, 829, 104, 829,
- 829, 829, 829, 829, 829, 829, 829, 829, 829, 829,
- 829, 829, 829, 829, 829, 829, 829, 829, 829, 829,
-
- 829, 829, 829, 829, 829, 829, 829, 133, 832, 832,
- 832, 832, 832, 832, 832, 832, 832, 832, 832, 832,
- 832, 832, 832, 832, 832, 832, 832, 832, 832, 832,
- 832, 828, 828, 828, 828, 828, 828, 828, 828, 828,
- 828, 828, 828, 828, 828, 828, 828, 828, 828, 828,
- 828, 828, 828, 828, 828, 828, 828, 828, 828, 828,
- 828, 828, 828, 828, 828, 828, 828, 828, 828, 829,
- 829, 829, 829, 829, 829, 829, 829, 829, 829, 829,
- 829, 829, 829, 829, 829, 829, 829, 829, 829, 829,
- 829, 829, 829, 829, 829, 829, 829, 829, 829, 829,
-
- 829, 829, 829, 829, 829, 829, 829, 409, 832, 832,
- 832, 832, 832, 832, 834, 832, 832, 832, 832, 832,
- 832, 832, 832, 832, 835, 832, 832, 832, 832, 828,
- 828, 828, 828, 828, 828, 828, 828, 828, 828, 828,
- 828, 828, 828, 828, 828, 828, 828, 828, 828, 828,
- 828, 828, 828, 828, 828, 828, 828, 828, 828, 829,
- 829, 829, 829, 829, 829, 829, 829, 829, 829, 829,
- 829, 829, 829, 829, 829, 829, 829, 829, 829, 829,
- 829, 829, 829, 829, 829, 829, 829, 829, 829, 832,
- 832, 832, 832, 836, 834, 832, 832, 832, 832, 832,
-
- 837, 835, 832, 828, 828, 828, 828, 828, 828, 828,
- 828, 828, 828, 828, 828, 828, 828, 828, 828, 828,
- 828, 828, 828, 828, 828, 829, 829, 829, 829, 829,
- 829, 829, 829, 829, 829, 829, 829, 829, 829, 829,
- 829, 829, 829, 829, 829, 829, 829, 832, 832, 832,
- 832, 832, 832, 832, 828, 828, 828, 828, 828, 828,
- 828, 828, 828, 828, 828, 828, 828, 828, 828, 828,
- 829, 829, 829, 829, 829, 829, 829, 829, 829, 829,
- 829, 829, 829, 829, 829, 829, 832, 832, 832, 832,
- 828, 828, 828, 828, 828, 828, 828, 828, 828, 828,
-
- 828, 829, 829, 829, 829, 829, 829, 829, 829, 829,
- 829, 829, 832, 832, 832, 832, 828, 828, 828, 828,
- 828, 828, 828, 828, 829, 829, 829, 829, 829, 829,
- 829, 829, 828, 828, 828, 828, 828, 828, 828, 828,
- 829, 829, 829, 829, 829, 829, 829, 829, 828, 828,
- 828, 828, 828, 828, 828, 829, 829, 829, 829, 829,
- 829, 829, 828, 828, 828, 828, 828, 828, 829, 829,
- 829, 829, 829, 829, 828, 828, 828, 828, 828, 829,
- 829, 829, 829, 829, 828, 828, 828, 828, 829, 829,
- 829, 829, 828, 828, 829, 829, 828, 828, 829, 829,
-
- 828, 828, 829, 829, 828, 828, 829, 829, 828, 828,
- 829, 829, 828, 828, 829, 829, 828, 828, 829, 829,
- 828, 829, 828, 829, 0, 825, 825, 825, 825, 825,
- 825, 825, 825, 825, 825, 825, 825
- } ;
-
- static const short int yy_nxt[1613] =
- { 0,
- 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
- 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
- 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
- 45, 46, 47, 48, 30, 30, 49, 50, 51, 52,
- 53, 54, 30, 55, 56, 30, 30, 30, 30, 30,
- 57, 58, 30, 59, 33, 33, 33, 33, 33, 30,
- 30, 30, 30, 60, 30, 30, 61, 30, 30, 62,
- 30, 30, 30, 30, 63, 64, 65, 66, 67, 68,
- 17, 69, 70, 71, 72, 73, 74, 75, 76, 77,
- 78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
-
- 88, 89, 90, 91, 92, 92, 93, 92, 92, 81,
- 81, 81, 81, 81, 81, 81, 94, 81, 81, 81,
- 81, 95, 81, 81, 81, 81, 81, 81, 96, 97,
- 81, 98, 92, 92, 92, 92, 92, 81, 81, 81,
- 81, 81, 81, 81, 81, 81, 81, 99, 81, 81,
- 81, 81, 100, 101, 102, 103, 104, 169, 174, 178,
- 179, 181, 182, 189, 193, 314, 190, 105, 106, 175,
- 315, 170, 815, 187, 200, 107, 108, 109, 110, 111,
- 112, 113, 114, 115, 201, 188, 116, 117, 118, 119,
- 120, 121, 204, 122, 123, 202, 166, 206, 166, 203,
-
- 207, 208, 205, 124, 125, 125, 125, 125, 125, 166,
- 178, 179, 816, 126, 181, 182, 127, 67, 67, 14,
- 67, 67, 67, 128, 67, 67, 67, 67, 67, 129,
- 67, 130, 131, 131, 105, 106, 67, 67, 67, 132,
- 67, 67, 133, 133, 133, 133, 133, 133, 131, 131,
- 131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
- 131, 131, 131, 131, 131, 131, 131, 67, 67, 131,
- 133, 133, 133, 133, 133, 133, 131, 131, 131, 131,
- 131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
- 131, 67, 67, 67, 131, 15, 16, 134, 135, 15,
-
- 15, 136, 15, 15, 15, 15, 137, 15, 138, 15,
- 139, 139, 140, 141, 15, 15, 15, 142, 15, 15,
- 143, 144, 145, 146, 147, 148, 139, 139, 139, 139,
- 139, 149, 139, 150, 151, 152, 139, 139, 153, 154,
- 139, 139, 139, 139, 139, 15, 15, 139, 155, 146,
- 156, 146, 157, 158, 139, 139, 139, 139, 159, 139,
- 160, 161, 139, 139, 162, 139, 139, 139, 139, 15,
- 15, 15, 139, 167, 168, 191, 221, 217, 169, 321,
- 440, 168, 168, 168, 168, 168, 168, 322, 183, 192,
- 184, 194, 170, 174, 195, 166, 269, 196, 185, 272,
-
- 270, 303, 273, 274, 228, 817, 186, 304, 166, 168,
- 168, 168, 168, 168, 168, 168, 168, 211, 166, 166,
- 212, 213, 221, 168, 168, 168, 168, 168, 168, 222,
- 166, 166, 214, 176, 166, 176, 215, 244, 267, 242,
- 242, 242, 242, 243, 326, 818, 327, 245, 268, 223,
- 223, 168, 168, 168, 168, 168, 168, 223, 223, 242,
- 176, 242, 176, 232, 232, 232, 232, 433, 244, 223,
- 177, 224, 225, 329, 819, 222, 295, 223, 271, 225,
- 225, 225, 225, 225, 225, 250, 289, 247, 295, 820,
- 232, 232, 232, 232, 300, 299, 295, 166, 289, 250,
-
- 233, 825, 821, 239, 254, 239, 289, 225, 225, 225,
- 225, 225, 225, 229, 229, 166, 255, 239, 250, 239,
- 260, 229, 230, 229, 230, 229, 229, 252, 231, 253,
- 239, 232, 239, 232, 345, 231, 239, 240, 239, 352,
- 346, 353, 394, 231, 239, 241, 239, 295, 369, 229,
- 229, 229, 229, 229, 229, 822, 250, 289, 232, 301,
- 232, 359, 295, 239, 166, 239, 695, 823, 233, 235,
- 235, 696, 289, 295, 239, 250, 239, 235, 236, 235,
- 237, 235, 235, 289, 238, 824, 302, 239, 240, 239,
- 310, 238, 295, 239, 295, 239, 241, 256, 251, 238,
-
- 257, 239, 289, 239, 289, 235, 235, 235, 235, 235,
- 235, 376, 814, 377, 239, 813, 239, 249, 250, 250,
- 239, 400, 239, 401, 250, 250, 250, 250, 250, 250,
- 250, 258, 277, 312, 812, 278, 246, 239, 295, 239,
- 261, 250, 239, 262, 239, 259, 263, 279, 289, 811,
- 810, 280, 295, 250, 250, 250, 250, 250, 250, 239,
- 337, 239, 289, 338, 239, 242, 239, 242, 809, 239,
- 808, 239, 311, 339, 295, 223, 250, 166, 282, 166,
- 825, 510, 825, 223, 289, 807, 239, 511, 239, 286,
- 287, 410, 313, 242, 239, 242, 239, 287, 287, 287,
-
- 287, 287, 287, 223, 166, 387, 166, 825, 388, 825,
- 364, 223, 295, 806, 166, 709, 805, 804, 389, 803,
- 710, 239, 289, 239, 802, 287, 287, 287, 287, 287,
- 287, 287, 287, 801, 800, 242, 242, 365, 242, 287,
- 287, 287, 287, 287, 287, 223, 223, 799, 242, 288,
- 242, 288, 367, 223, 223, 242, 798, 242, 223, 797,
- 796, 795, 794, 793, 250, 223, 223, 287, 287, 287,
- 287, 287, 287, 223, 792, 373, 288, 791, 288, 290,
- 291, 790, 239, 295, 239, 789, 788, 291, 291, 291,
- 291, 291, 291, 289, 295, 242, 787, 242, 371, 786,
-
- 412, 785, 473, 784, 289, 223, 783, 250, 250, 239,
- 782, 239, 781, 223, 780, 291, 291, 291, 291, 291,
- 291, 293, 293, 473, 779, 239, 239, 239, 239, 293,
- 294, 293, 295, 293, 293, 778, 296, 423, 777, 297,
- 298, 297, 776, 296, 775, 774, 773, 250, 772, 771,
- 770, 296, 239, 239, 239, 239, 769, 293, 293, 293,
- 293, 293, 293, 363, 768, 239, 297, 239, 297, 225,
- 225, 767, 766, 364, 765, 250, 764, 225, 225, 225,
- 225, 225, 225, 250, 763, 762, 761, 239, 379, 239,
- 760, 759, 239, 239, 239, 239, 285, 758, 285, 757,
-
- 756, 239, 755, 239, 754, 225, 225, 225, 225, 225,
- 225, 242, 753, 242, 239, 752, 239, 751, 750, 749,
- 239, 223, 239, 285, 363, 285, 748, 471, 239, 223,
- 239, 747, 297, 250, 297, 371, 291, 291, 746, 745,
- 744, 743, 742, 741, 291, 291, 291, 291, 291, 291,
- 740, 239, 739, 239, 297, 738, 297, 737, 471, 297,
- 736, 297, 735, 734, 733, 732, 731, 730, 729, 728,
- 727, 726, 291, 291, 291, 291, 291, 291, 239, 725,
- 239, 297, 724, 297, 723, 722, 721, 720, 719, 718,
- 717, 409, 508, 508, 716, 715, 714, 713, 712, 711,
-
- 508, 508, 508, 508, 508, 508, 708, 707, 706, 705,
- 704, 703, 702, 701, 700, 699, 698, 697, 694, 693,
- 692, 691, 690, 689, 688, 687, 686, 685, 508, 508,
- 508, 508, 508, 508, 594, 594, 684, 594, 594, 594,
- 683, 594, 594, 594, 594, 594, 682, 594, 681, 680,
- 679, 678, 677, 676, 594, 594, 594, 594, 594, 675,
- 674, 673, 672, 671, 670, 669, 668, 667, 666, 665,
- 664, 663, 662, 661, 660, 659, 658, 657, 656, 655,
- 654, 653, 652, 651, 650, 649, 648, 647, 646, 645,
- 644, 643, 642, 641, 640, 639, 638, 637, 636, 635,
-
- 634, 633, 632, 631, 630, 629, 628, 627, 594, 594,
- 594, 601, 601, 626, 601, 601, 601, 625, 601, 601,
- 601, 601, 601, 624, 601, 623, 622, 621, 620, 619,
- 618, 601, 601, 601, 601, 601, 617, 616, 615, 614,
- 613, 612, 611, 610, 609, 608, 607, 606, 605, 604,
- 603, 600, 599, 598, 597, 596, 593, 592, 591, 590,
- 589, 588, 587, 586, 585, 584, 583, 582, 581, 580,
- 579, 578, 577, 576, 575, 574, 573, 572, 571, 570,
- 569, 568, 567, 566, 565, 601, 601, 601, 594, 594,
- 564, 594, 594, 594, 563, 594, 594, 594, 594, 594,
-
- 562, 594, 561, 560, 559, 558, 557, 556, 594, 594,
- 594, 594, 594, 555, 554, 553, 552, 551, 550, 549,
- 548, 547, 546, 545, 544, 543, 542, 541, 540, 539,
- 538, 537, 536, 535, 534, 533, 532, 531, 530, 529,
- 528, 527, 526, 525, 524, 523, 522, 521, 520, 519,
- 518, 517, 516, 515, 514, 513, 512, 509, 507, 506,
- 505, 504, 594, 594, 594, 601, 601, 503, 601, 601,
- 601, 502, 601, 601, 601, 601, 601, 501, 601, 500,
- 499, 498, 497, 496, 495, 601, 601, 601, 601, 601,
- 494, 493, 492, 491, 490, 489, 488, 487, 486, 485,
-
- 484, 483, 482, 481, 480, 479, 478, 477, 476, 475,
- 474, 472, 470, 250, 469, 468, 467, 466, 465, 464,
- 463, 462, 461, 460, 459, 458, 457, 456, 455, 454,
- 453, 452, 451, 450, 449, 448, 447, 446, 445, 601,
- 601, 601, 14, 14, 14, 14, 14, 14, 164, 164,
- 164, 164, 164, 164, 166, 166, 166, 166, 223, 223,
- 223, 223, 285, 285, 289, 444, 289, 289, 292, 443,
- 292, 292, 292, 292, 595, 442, 595, 595, 595, 595,
- 602, 441, 602, 602, 602, 602, 594, 439, 594, 594,
- 594, 594, 601, 438, 601, 601, 601, 601, 437, 436,
-
- 435, 434, 432, 431, 430, 429, 428, 427, 426, 425,
- 424, 422, 421, 420, 419, 418, 417, 416, 415, 414,
- 413, 411, 289, 408, 407, 406, 405, 404, 403, 402,
- 399, 398, 397, 396, 395, 393, 392, 391, 390, 386,
- 385, 384, 383, 382, 381, 380, 378, 375, 374, 372,
- 370, 369, 368, 366, 825, 825, 223, 362, 361, 360,
- 358, 357, 356, 355, 354, 351, 350, 349, 348, 347,
- 344, 343, 342, 341, 340, 336, 335, 334, 333, 332,
- 331, 330, 328, 325, 324, 323, 320, 319, 166, 165,
- 318, 317, 316, 309, 308, 307, 306, 305, 825, 284,
-
- 283, 281, 276, 275, 266, 265, 264, 248, 246, 234,
- 825, 227, 226, 171, 165, 163, 220, 219, 218, 216,
- 210, 209, 199, 198, 197, 180, 166, 173, 172, 171,
- 165, 163, 825, 13, 825, 825, 825, 825, 825, 825,
- 825, 825, 825, 825, 825, 825, 825, 825, 825, 825,
- 825, 825, 825, 825, 825, 825, 825, 825, 825, 825,
- 825, 825, 825, 825, 825, 825, 825, 825, 825, 825,
- 825, 825, 825, 825, 825, 825, 825, 825, 825, 825,
- 825, 825, 825, 825, 825, 825, 825, 825, 825, 825,
- 825, 825, 825, 825, 825, 825, 825, 825, 825, 825,
-
- 825, 825, 825, 825, 825, 825, 825, 825, 825, 825,
- 825, 825
- } ;
-
- static const short int yy_chk[1613] =
- { 0,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
-
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 7, 23, 31, 36,
- 36, 38, 38, 42, 44, 159, 42, 7, 7, 31,
- 159, 23, 811, 41, 49, 7, 7, 7, 7, 7,
- 7, 7, 7, 7, 49, 41, 7, 7, 7, 7,
- 7, 7, 51, 7, 7, 50, 42, 52, 44, 50,
-
- 52, 52, 51, 7, 7, 7, 7, 7, 7, 41,
- 87, 87, 812, 7, 89, 89, 7, 9, 9, 9,
- 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
- 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
- 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
- 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
- 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
- 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
- 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
- 9, 9, 9, 9, 9, 11, 11, 11, 11, 11,
-
- 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
- 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
- 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
- 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
- 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
- 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
- 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
- 11, 11, 11, 21, 21, 43, 64, 59, 74, 183,
- 329, 21, 21, 21, 21, 21, 21, 184, 40, 43,
- 40, 45, 74, 82, 45, 59, 117, 45, 40, 119,
-
- 117, 149, 119, 119, 82, 813, 40, 149, 183, 21,
- 21, 21, 21, 21, 21, 32, 32, 55, 43, 329,
- 55, 55, 101, 32, 32, 32, 32, 32, 32, 64,
- 45, 184, 55, 32, 40, 32, 55, 94, 116, 92,
- 93, 92, 93, 93, 189, 814, 189, 94, 116, 92,
- 93, 32, 32, 32, 32, 32, 32, 92, 93, 98,
- 32, 98, 32, 105, 106, 105, 106, 322, 118, 98,
- 32, 72, 72, 191, 815, 101, 146, 98, 118, 72,
- 72, 72, 72, 72, 72, 108, 146, 98, 145, 816,
- 105, 106, 105, 106, 145, 144, 144, 322, 145, 111,
-
- 105, 106, 818, 108, 108, 108, 144, 72, 72, 72,
- 72, 72, 72, 83, 83, 191, 108, 111, 107, 111,
- 111, 83, 83, 83, 83, 83, 83, 107, 83, 107,
- 108, 83, 108, 83, 205, 83, 107, 107, 107, 211,
- 205, 211, 271, 83, 111, 107, 111, 147, 271, 83,
- 83, 83, 83, 83, 83, 820, 125, 147, 83, 147,
- 83, 217, 155, 107, 217, 107, 662, 821, 83, 91,
- 91, 662, 155, 148, 125, 109, 125, 91, 91, 91,
- 91, 91, 91, 148, 91, 822, 148, 91, 91, 91,
- 155, 91, 293, 109, 157, 109, 91, 109, 830, 91,
-
- 109, 125, 293, 125, 157, 91, 91, 91, 91, 91,
- 91, 256, 810, 256, 91, 809, 91, 104, 104, 110,
- 109, 277, 109, 277, 112, 104, 104, 104, 104, 104,
- 104, 110, 122, 157, 808, 122, 122, 110, 156, 110,
- 112, 124, 112, 112, 112, 110, 112, 122, 156, 807,
- 806, 122, 158, 104, 104, 104, 104, 104, 104, 124,
- 199, 124, 158, 199, 110, 235, 110, 235, 805, 112,
- 804, 112, 156, 199, 294, 235, 250, 177, 124, 177,
- 233, 411, 233, 235, 294, 803, 124, 411, 124, 128,
- 128, 294, 158, 236, 250, 236, 250, 128, 128, 128,
-
- 128, 128, 128, 236, 177, 266, 177, 233, 266, 233,
- 236, 236, 295, 802, 177, 681, 801, 800, 266, 799,
- 681, 250, 295, 250, 798, 128, 128, 128, 128, 128,
- 128, 133, 133, 797, 796, 237, 242, 237, 242, 133,
- 133, 133, 133, 133, 133, 237, 242, 795, 243, 133,
- 243, 133, 243, 237, 242, 247, 794, 247, 243, 793,
- 792, 791, 786, 785, 253, 247, 243, 133, 133, 133,
- 133, 133, 133, 247, 783, 253, 133, 782, 133, 136,
- 136, 781, 253, 299, 253, 780, 779, 136, 136, 136,
- 136, 136, 136, 299, 310, 367, 778, 367, 247, 776,
-
- 299, 775, 367, 774, 310, 367, 773, 379, 249, 253,
- 772, 253, 770, 367, 769, 136, 136, 136, 136, 136,
- 136, 143, 143, 379, 768, 379, 249, 379, 249, 143,
- 143, 143, 143, 143, 143, 767, 143, 310, 766, 143,
- 143, 143, 765, 143, 764, 762, 760, 252, 759, 758,
- 757, 143, 379, 249, 379, 249, 756, 143, 143, 143,
- 143, 143, 143, 249, 755, 252, 143, 252, 143, 224,
- 224, 754, 753, 252, 751, 258, 750, 224, 224, 224,
- 224, 224, 224, 282, 749, 747, 746, 224, 258, 224,
- 745, 744, 252, 258, 252, 258, 408, 743, 408, 742,
-
- 741, 282, 740, 282, 739, 224, 224, 224, 224, 224,
- 224, 365, 737, 365, 224, 736, 224, 735, 734, 733,
- 258, 365, 258, 408, 224, 408, 732, 365, 282, 365,
- 282, 731, 508, 373, 508, 282, 290, 290, 730, 729,
- 728, 727, 726, 725, 290, 290, 290, 290, 290, 290,
- 724, 373, 723, 373, 290, 722, 290, 721, 373, 508,
- 720, 508, 719, 718, 717, 711, 710, 709, 708, 707,
- 706, 705, 290, 290, 290, 290, 290, 290, 373, 703,
- 373, 290, 701, 290, 699, 697, 696, 695, 694, 693,
- 692, 290, 409, 409, 690, 689, 688, 687, 685, 684,
-
- 409, 409, 409, 409, 409, 409, 678, 677, 676, 675,
- 674, 673, 671, 670, 669, 667, 666, 665, 659, 657,
- 656, 655, 653, 652, 649, 648, 645, 644, 409, 409,
- 409, 409, 409, 409, 515, 515, 643, 515, 515, 515,
- 642, 515, 515, 515, 515, 515, 641, 515, 640, 638,
- 635, 634, 633, 632, 515, 515, 515, 515, 515, 631,
- 630, 629, 627, 626, 625, 624, 621, 620, 619, 618,
- 617, 616, 615, 612, 609, 608, 607, 606, 605, 604,
- 600, 599, 598, 597, 593, 592, 590, 589, 588, 587,
- 585, 584, 583, 582, 581, 580, 579, 578, 577, 575,
-
- 573, 569, 568, 566, 565, 564, 563, 562, 515, 515,
- 515, 525, 525, 560, 525, 525, 525, 559, 525, 525,
- 525, 525, 525, 558, 525, 557, 556, 555, 554, 552,
- 551, 525, 525, 525, 525, 525, 550, 549, 548, 547,
- 546, 545, 544, 543, 541, 539, 535, 534, 533, 530,
- 528, 524, 522, 521, 519, 518, 514, 511, 510, 509,
- 507, 506, 505, 504, 503, 502, 500, 499, 498, 497,
- 496, 495, 493, 492, 490, 489, 488, 487, 485, 484,
- 483, 481, 479, 478, 477, 525, 525, 525, 595, 595,
- 476, 595, 595, 595, 475, 595, 595, 595, 595, 595,
-
- 473, 595, 472, 470, 469, 468, 467, 466, 595, 595,
- 595, 595, 595, 465, 464, 463, 462, 461, 459, 458,
- 457, 456, 455, 454, 452, 450, 449, 447, 446, 445,
- 444, 442, 441, 440, 439, 437, 435, 434, 432, 431,
- 430, 429, 428, 427, 426, 424, 423, 422, 421, 420,
- 419, 418, 417, 416, 415, 413, 412, 410, 405, 404,
- 403, 402, 595, 595, 595, 602, 602, 401, 602, 602,
- 602, 400, 602, 602, 602, 602, 602, 399, 602, 398,
- 397, 396, 395, 394, 393, 602, 602, 602, 602, 602,
- 391, 390, 389, 388, 387, 385, 384, 383, 382, 381,
-
- 380, 378, 377, 376, 375, 374, 372, 371, 370, 369,
- 368, 366, 364, 363, 362, 359, 358, 357, 356, 355,
- 354, 353, 352, 351, 350, 349, 348, 347, 346, 345,
- 344, 343, 341, 340, 339, 338, 337, 335, 334, 602,
- 602, 602, 826, 826, 826, 826, 826, 826, 827, 827,
- 827, 827, 827, 827, 828, 828, 828, 828, 829, 829,
- 829, 829, 831, 831, 832, 333, 832, 832, 833, 332,
- 833, 833, 833, 833, 834, 331, 834, 834, 834, 834,
- 835, 330, 835, 835, 835, 835, 836, 328, 836, 836,
- 836, 836, 837, 327, 837, 837, 837, 837, 326, 325,
-
- 324, 323, 321, 318, 317, 316, 315, 314, 313, 312,
- 311, 309, 308, 307, 306, 305, 304, 303, 302, 301,
- 300, 298, 291, 286, 284, 283, 281, 280, 279, 278,
- 276, 275, 274, 273, 272, 270, 269, 268, 267, 265,
- 264, 263, 262, 261, 260, 259, 257, 255, 254, 248,
- 246, 245, 244, 240, 230, 229, 225, 220, 219, 218,
- 216, 215, 214, 213, 212, 210, 209, 208, 207, 206,
- 204, 203, 202, 201, 200, 198, 197, 196, 195, 194,
- 193, 192, 190, 188, 187, 185, 182, 178, 168, 164,
- 162, 161, 160, 154, 153, 152, 151, 150, 141, 127,
-
- 126, 123, 121, 120, 115, 114, 113, 99, 95, 88,
- 84, 80, 78, 77, 71, 70, 62, 61, 60, 56,
- 54, 53, 48, 47, 46, 37, 33, 29, 27, 26,
- 20, 19, 13, 825, 825, 825, 825, 825, 825, 825,
- 825, 825, 825, 825, 825, 825, 825, 825, 825, 825,
- 825, 825, 825, 825, 825, 825, 825, 825, 825, 825,
- 825, 825, 825, 825, 825, 825, 825, 825, 825, 825,
- 825, 825, 825, 825, 825, 825, 825, 825, 825, 825,
- 825, 825, 825, 825, 825, 825, 825, 825, 825, 825,
- 825, 825, 825, 825, 825, 825, 825, 825, 825, 825,
-
- 825, 825, 825, 825, 825, 825, 825, 825, 825, 825,
- 825, 825
- } ;
-
- static yy_state_type yy_last_accepting_state;
- static char *yy_last_accepting_cpos;
-
- /* The intent behind this definition is that it'll catch
- * any uses of REJECT which flex missed.
- */
- #define REJECT reject_used_but_not_detected
- #define yymore() yymore_used_but_not_detected
- #define YY_MORE_ADJ 0
- char *yytext;
- # line 1 "./ldlex.l"
- # line 2 "./ldlex.l"
-
- /* Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
-
- This file is part of GLD, the Gnu Linker.
-
- GLD is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- GLD is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with GLD; see the file COPYING. If not, write to
- the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-
- /*
- This was written by steve chamberlain
- sac@cygnus.com
- */
-
-
- #include <ansidecl.h>
- #include <stdio.h>
- #include <ctype.h>
- #include "bfd.h"
- #include "sysdep.h"
- #include "ld.h"
- #include "ldgram.h"
- #include "ldmisc.h"
- #include "ldexp.h"
- #include "ldlang.h"
- #include "ldfile.h"
- #include "ldlex.h"
- #include "ldmain.h"
-
- /* The type of top-level parser input.
- yylex and yyparse (indirectly) both check this. */
- input_type parser_input;
-
- /* Radix to use for bfd_scan_vma -- 0 (default to base 10) or 16. */
- int hex_mode;
-
- /* Line number in the current input file.
- (FIXME Actually, it doesn't appear to get reset for each file?) */
- unsigned int lineno = 1;
-
- /* Support for flex reading from more than one input file (stream).
- `include_stack' is flex's input state for each open file;
- `file_name_stack' is the file names. `lineno_stack' is the current
- line numbers.
-
- If `include_stack_ptr' is 0, we haven't started reading anything yet.
- Otherwise, stack elements 0 through `include_stack_ptr - 1' are valid. */
-
- #undef YY_INPUT
- #define YY_INPUT(buf,result,max_size) yy_input(buf, &result, max_size)
-
- #define MAX_INCLUDE_DEPTH 10
- static YY_BUFFER_STATE include_stack[MAX_INCLUDE_DEPTH];
- static const char *file_name_stack[MAX_INCLUDE_DEPTH];
- static unsigned int lineno_stack[MAX_INCLUDE_DEPTH];
- static unsigned int include_stack_ptr = 0;
-
- static YY_BUFFER_STATE yy_create_string_buffer PARAMS ((const char *string,
- size_t size));
- static void yy_input PARAMS ((char *, int *result, int max_size));
-
- static void comment PARAMS ((void));
- static void lex_warn_invalid PARAMS ((char *where, char *what));
-
- /* STATES
- EXPRESSION definitely in an expression
- SCRIPT definitely in a script
- BOTH either EXPRESSION or SCRIPT
- DEFSYMEXP in an argument to -defsym
- MRI in an MRI script
- */
- #define RTOKEN(x) { yylval.token = x; return x; }
-
- /* Some versions of flex want this. */
- #ifndef yywrap
- int yywrap () { return 1; }
- #endif
-
- /* Macros after this point can all be overridden by user definitions in
- * section 1.
- */
-
- #ifdef YY_MALLOC_DECL
- YY_MALLOC_DECL
- #else
- #if __STDC__
- #ifndef __cplusplus
- #include <stdlib.h>
- #endif
- #else
- /* Just try to get by without declaring the routines. This will fail
- * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
- * or sizeof(void*) != sizeof(int).
- */
- #endif
- #endif
-
- /* Amount of stuff to slurp up with each read. */
- #ifndef YY_READ_BUF_SIZE
- #define YY_READ_BUF_SIZE 8192
- #endif
-
- /* Copy whatever the last rule matched to the standard output. */
-
- #ifndef ECHO
- /* This used to be an fputs(), but since the string might contain NUL's,
- * we now use fwrite().
- */
- #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
- #endif
-
- /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
- * is returned in "result".
- */
- #ifndef YY_INPUT
- #define YY_INPUT(buf,result,max_size) \
- if ( yy_current_buffer->yy_is_interactive ) \
- { \
- int c = getc( yyin ); \
- result = c == EOF ? 0 : 1; \
- buf[0] = (char) c; \
- } \
- else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
- && ferror( yyin ) ) \
- YY_FATAL_ERROR( "input in flex scanner failed" );
- #endif
-
- /* No semi-colon after return; correct usage is to write "yyterminate();" -
- * we don't want an extra ';' after the "return" because that will cause
- * some compilers to complain about unreachable statements.
- */
- #ifndef yyterminate
- #define yyterminate() return YY_NULL
- #endif
-
- /* Number of entries by which start-condition stack grows. */
- #ifndef YY_START_STACK_INCR
- #define YY_START_STACK_INCR 25
- #endif
-
- /* Report a fatal error. */
- #ifndef YY_FATAL_ERROR
- #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
- #endif
-
- /* Default declaration of generated scanner - a define so the user can
- * easily add parameters.
- */
- #ifndef YY_DECL
- #define YY_DECL int yylex YY_PROTO(( void ))
- #endif
-
- /* Code executed at the beginning of each rule, after yytext and yyleng
- * have been set up.
- */
- #ifndef YY_USER_ACTION
- #define YY_USER_ACTION
- #endif
-
- /* Code executed at the end of each rule. */
- #ifndef YY_BREAK
- #define YY_BREAK break;
- #endif
-
- YY_DECL
- {
- register yy_state_type yy_current_state;
- register char *yy_cp, *yy_bp;
- register int yy_act;
-
- # line 110 "./ldlex.l"
-
-
- if (parser_input != input_selected)
- {
- /* The first token of the input determines the initial parser state. */
- input_type t = parser_input;
- parser_input = input_selected;
- switch (t)
- {
- case input_script: return INPUT_SCRIPT; break;
- case input_mri_script: return INPUT_MRI_SCRIPT; break;
- case input_defsym: return INPUT_DEFSYM; break;
- default: abort ();
- }
- }
-
-
- if ( yy_init )
- {
- #ifdef YY_USER_INIT
- YY_USER_INIT;
- #endif
-
- if ( ! yy_start )
- yy_start = 1; /* first start state */
-
- if ( ! yyin )
- yyin = stdin;
-
- if ( ! yyout )
- yyout = stdout;
-
- if ( yy_current_buffer )
- yy_init_buffer( yy_current_buffer, yyin );
- else
- yy_current_buffer =
- yy_create_buffer( yyin, YY_BUF_SIZE );
-
- yy_load_buffer_state();
-
- yy_init = 0;
- }
-
- while ( 1 ) /* loops until end-of-file is reached */
- {
- yy_cp = yy_c_buf_p;
-
- /* Support of yytext. */
- *yy_cp = yy_hold_char;
-
- /* yy_bp points to the position in yy_ch_buf of the start of
- * the current run.
- */
- yy_bp = yy_cp;
-
- yy_current_state = yy_start;
- yy_match:
- do
- {
- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
- if ( yy_accept[yy_current_state] )
- {
- yy_last_accepting_state = yy_current_state;
- yy_last_accepting_cpos = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 826 )
- yy_c = yy_meta[(unsigned int) yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
- ++yy_cp;
- }
- while ( yy_base[yy_current_state] != 1534 );
-
- yy_find_action:
- yy_act = yy_accept[yy_current_state];
-
- YY_DO_BEFORE_ACTION;
-
-
- do_action: /* This label is used only to access EOF actions. */
-
-
- switch ( yy_act )
- { /* beginning of action switch */
- case 0: /* must back up */
- /* undo the effects of YY_DO_BEFORE_ACTION */
- *yy_cp = yy_hold_char;
- yy_cp = yy_last_accepting_cpos;
- yy_current_state = yy_last_accepting_state;
- goto yy_find_action;
-
- case 1:
- YY_USER_ACTION
- # line 126 "./ldlex.l"
- { comment(); }
- YY_BREAK
- case 2:
- YY_USER_ACTION
- # line 129 "./ldlex.l"
- { RTOKEN('-');}
- YY_BREAK
- case 3:
- YY_USER_ACTION
- # line 130 "./ldlex.l"
- { RTOKEN('+');}
- YY_BREAK
- case 4:
- YY_USER_ACTION
- # line 131 "./ldlex.l"
- { yylval.name = buystring(yytext); return NAME; }
- YY_BREAK
- case 5:
- YY_USER_ACTION
- # line 132 "./ldlex.l"
- { RTOKEN('='); }
- YY_BREAK
- case 6:
- YY_USER_ACTION
- # line 134 "./ldlex.l"
- {
- yylval.integer = bfd_scan_vma (yytext+1, 0,16);
- return INT;
- }
- YY_BREAK
- case 7:
- YY_USER_ACTION
- # line 139 "./ldlex.l"
- {
- int ibase ;
- switch (yytext[yyleng-1]) {
- case 'X':
- case 'H':
- ibase = 16;
- break;
- case 'O':
- ibase = 8;
- break;
- case 'B':
- ibase = 2;
- break;
- default:
- ibase = 10;
- }
- yylval.integer = bfd_scan_vma (yytext+1, 0,
- ibase);
- return INT;
- }
- YY_BREAK
- case 8:
- YY_USER_ACTION
- # line 159 "./ldlex.l"
- {
- yylval.integer = bfd_scan_vma (yytext, 0,
- hex_mode);
- if (yytext[yyleng-1]=='M'
- || yytext[yyleng-1] == 'm') {
- yylval.integer *= 1024*1024;
- }
- if (yytext[yyleng-1]=='K'
- || yytext[yyleng-1]=='k') {
- yylval.integer *= 1024;
- }
- return INT;
- }
- YY_BREAK
- case 9:
- YY_USER_ACTION
- # line 172 "./ldlex.l"
- { RTOKEN(']');}
- YY_BREAK
- case 10:
- YY_USER_ACTION
- # line 173 "./ldlex.l"
- { RTOKEN('[');}
- YY_BREAK
- case 11:
- YY_USER_ACTION
- # line 174 "./ldlex.l"
- { RTOKEN(LSHIFTEQ);}
- YY_BREAK
- case 12:
- YY_USER_ACTION
- # line 175 "./ldlex.l"
- { RTOKEN(RSHIFTEQ);}
- YY_BREAK
- case 13:
- YY_USER_ACTION
- # line 176 "./ldlex.l"
- { RTOKEN(OROR);}
- YY_BREAK
- case 14:
- YY_USER_ACTION
- # line 177 "./ldlex.l"
- { RTOKEN(EQ);}
- YY_BREAK
- case 15:
- YY_USER_ACTION
- # line 178 "./ldlex.l"
- { RTOKEN(NE);}
- YY_BREAK
- case 16:
- YY_USER_ACTION
- # line 179 "./ldlex.l"
- { RTOKEN(GE);}
- YY_BREAK
- case 17:
- YY_USER_ACTION
- # line 180 "./ldlex.l"
- { RTOKEN(LE);}
- YY_BREAK
- case 18:
- YY_USER_ACTION
- # line 181 "./ldlex.l"
- { RTOKEN(LSHIFT);}
- YY_BREAK
- case 19:
- YY_USER_ACTION
- # line 182 "./ldlex.l"
- { RTOKEN(RSHIFT);}
- YY_BREAK
- case 20:
- YY_USER_ACTION
- # line 183 "./ldlex.l"
- { RTOKEN(PLUSEQ);}
- YY_BREAK
- case 21:
- YY_USER_ACTION
- # line 184 "./ldlex.l"
- { RTOKEN(MINUSEQ);}
- YY_BREAK
- case 22:
- YY_USER_ACTION
- # line 185 "./ldlex.l"
- { RTOKEN(MULTEQ);}
- YY_BREAK
- case 23:
- YY_USER_ACTION
- # line 186 "./ldlex.l"
- { RTOKEN(DIVEQ);}
- YY_BREAK
- case 24:
- YY_USER_ACTION
- # line 187 "./ldlex.l"
- { RTOKEN(ANDEQ);}
- YY_BREAK
- case 25:
- YY_USER_ACTION
- # line 188 "./ldlex.l"
- { RTOKEN(OREQ);}
- YY_BREAK
- case 26:
- YY_USER_ACTION
- # line 189 "./ldlex.l"
- { RTOKEN(ANDAND);}
- YY_BREAK
- case 27:
- YY_USER_ACTION
- # line 190 "./ldlex.l"
- { RTOKEN('>');}
- YY_BREAK
- case 28:
- YY_USER_ACTION
- # line 191 "./ldlex.l"
- { RTOKEN(',');}
- YY_BREAK
- case 29:
- YY_USER_ACTION
- # line 192 "./ldlex.l"
- { RTOKEN('&');}
- YY_BREAK
- case 30:
- YY_USER_ACTION
- # line 193 "./ldlex.l"
- { RTOKEN('|');}
- YY_BREAK
- case 31:
- YY_USER_ACTION
- # line 194 "./ldlex.l"
- { RTOKEN('~');}
- YY_BREAK
- case 32:
- YY_USER_ACTION
- # line 195 "./ldlex.l"
- { RTOKEN('!');}
- YY_BREAK
- case 33:
- YY_USER_ACTION
- # line 196 "./ldlex.l"
- { RTOKEN('?');}
- YY_BREAK
- case 34:
- YY_USER_ACTION
- # line 197 "./ldlex.l"
- { RTOKEN('*');}
- YY_BREAK
- case 35:
- YY_USER_ACTION
- # line 198 "./ldlex.l"
- { RTOKEN('+');}
- YY_BREAK
- case 36:
- YY_USER_ACTION
- # line 199 "./ldlex.l"
- { RTOKEN('-');}
- YY_BREAK
- case 37:
- YY_USER_ACTION
- # line 200 "./ldlex.l"
- { RTOKEN('/');}
- YY_BREAK
- case 38:
- YY_USER_ACTION
- # line 201 "./ldlex.l"
- { RTOKEN('%');}
- YY_BREAK
- case 39:
- YY_USER_ACTION
- # line 202 "./ldlex.l"
- { RTOKEN('<');}
- YY_BREAK
- case 40:
- YY_USER_ACTION
- # line 203 "./ldlex.l"
- { RTOKEN('=');}
- YY_BREAK
- case 41:
- YY_USER_ACTION
- # line 204 "./ldlex.l"
- { RTOKEN('}') ; }
- YY_BREAK
- case 42:
- YY_USER_ACTION
- # line 205 "./ldlex.l"
- { RTOKEN('{'); }
- YY_BREAK
- case 43:
- YY_USER_ACTION
- # line 206 "./ldlex.l"
- { RTOKEN(')');}
- YY_BREAK
- case 44:
- YY_USER_ACTION
- # line 207 "./ldlex.l"
- { RTOKEN('(');}
- YY_BREAK
- case 45:
- YY_USER_ACTION
- # line 208 "./ldlex.l"
- { RTOKEN(':'); }
- YY_BREAK
- case 46:
- YY_USER_ACTION
- # line 209 "./ldlex.l"
- { RTOKEN(';');}
- YY_BREAK
- case 47:
- YY_USER_ACTION
- # line 210 "./ldlex.l"
- { RTOKEN(MEMORY);}
- YY_BREAK
- case 48:
- YY_USER_ACTION
- # line 211 "./ldlex.l"
- { RTOKEN(ORIGIN);}
- YY_BREAK
- case 49:
- YY_USER_ACTION
- # line 212 "./ldlex.l"
- { RTOKEN(BLOCK);}
- YY_BREAK
- case 50:
- YY_USER_ACTION
- # line 213 "./ldlex.l"
- { RTOKEN(LENGTH);}
- YY_BREAK
- case 51:
- YY_USER_ACTION
- # line 214 "./ldlex.l"
- { RTOKEN(ALIGN_K);}
- YY_BREAK
- case 52:
- YY_USER_ACTION
- # line 215 "./ldlex.l"
- { RTOKEN(ADDR);}
- YY_BREAK
- case 53:
- YY_USER_ACTION
- # line 216 "./ldlex.l"
- { RTOKEN(ENTRY);}
- YY_BREAK
- case 54:
- YY_USER_ACTION
- # line 217 "./ldlex.l"
- { RTOKEN(NEXT);}
- YY_BREAK
- case 55:
- YY_USER_ACTION
- # line 218 "./ldlex.l"
- { RTOKEN(SIZEOF_HEADERS);}
- YY_BREAK
- case 56:
- YY_USER_ACTION
- # line 219 "./ldlex.l"
- { RTOKEN(SIZEOF_HEADERS);}
- YY_BREAK
- case 57:
- YY_USER_ACTION
- # line 220 "./ldlex.l"
- { RTOKEN(MAP);}
- YY_BREAK
- case 58:
- YY_USER_ACTION
- # line 221 "./ldlex.l"
- { RTOKEN(SIZEOF);}
- YY_BREAK
- case 59:
- YY_USER_ACTION
- # line 222 "./ldlex.l"
- { RTOKEN(TARGET_K);}
- YY_BREAK
- case 60:
- YY_USER_ACTION
- # line 223 "./ldlex.l"
- { RTOKEN(SEARCH_DIR);}
- YY_BREAK
- case 61:
- YY_USER_ACTION
- # line 224 "./ldlex.l"
- { RTOKEN(OUTPUT);}
- YY_BREAK
- case 62:
- YY_USER_ACTION
- # line 225 "./ldlex.l"
- { RTOKEN(INPUT);}
- YY_BREAK
- case 63:
- YY_USER_ACTION
- # line 226 "./ldlex.l"
- { RTOKEN(GROUP);}
- YY_BREAK
- case 64:
- YY_USER_ACTION
- # line 227 "./ldlex.l"
- { RTOKEN(DEFINED);}
- YY_BREAK
- case 65:
- YY_USER_ACTION
- # line 228 "./ldlex.l"
- { RTOKEN(CREATE_OBJECT_SYMBOLS);}
- YY_BREAK
- case 66:
- YY_USER_ACTION
- # line 229 "./ldlex.l"
- { RTOKEN( CONSTRUCTORS);}
- YY_BREAK
- case 67:
- YY_USER_ACTION
- # line 230 "./ldlex.l"
- { RTOKEN(FORCE_COMMON_ALLOCATION);}
- YY_BREAK
- case 68:
- YY_USER_ACTION
- # line 231 "./ldlex.l"
- { RTOKEN(SECTIONS);}
- YY_BREAK
- case 69:
- YY_USER_ACTION
- # line 232 "./ldlex.l"
- { RTOKEN(FILL);}
- YY_BREAK
- case 70:
- YY_USER_ACTION
- # line 233 "./ldlex.l"
- { RTOKEN(STARTUP);}
- YY_BREAK
- case 71:
- YY_USER_ACTION
- # line 234 "./ldlex.l"
- { RTOKEN(OUTPUT_FORMAT);}
- YY_BREAK
- case 72:
- YY_USER_ACTION
- # line 235 "./ldlex.l"
- { RTOKEN( OUTPUT_ARCH);}
- YY_BREAK
- case 73:
- YY_USER_ACTION
- # line 236 "./ldlex.l"
- { RTOKEN(HLL);}
- YY_BREAK
- case 74:
- YY_USER_ACTION
- # line 237 "./ldlex.l"
- { RTOKEN(SYSLIB);}
- YY_BREAK
- case 75:
- YY_USER_ACTION
- # line 238 "./ldlex.l"
- { RTOKEN(FLOAT);}
- YY_BREAK
- case 76:
- YY_USER_ACTION
- # line 239 "./ldlex.l"
- { RTOKEN( QUAD);}
- YY_BREAK
- case 77:
- YY_USER_ACTION
- # line 240 "./ldlex.l"
- { RTOKEN( LONG);}
- YY_BREAK
- case 78:
- YY_USER_ACTION
- # line 241 "./ldlex.l"
- { RTOKEN( SHORT);}
- YY_BREAK
- case 79:
- YY_USER_ACTION
- # line 242 "./ldlex.l"
- { RTOKEN( BYTE);}
- YY_BREAK
- case 80:
- YY_USER_ACTION
- # line 243 "./ldlex.l"
- { RTOKEN(NOFLOAT);}
- YY_BREAK
- case 81:
- YY_USER_ACTION
- # line 244 "./ldlex.l"
- { RTOKEN(NOLOAD);}
- YY_BREAK
- case 82:
- YY_USER_ACTION
- # line 245 "./ldlex.l"
- { RTOKEN(DSECT);}
- YY_BREAK
- case 83:
- YY_USER_ACTION
- # line 246 "./ldlex.l"
- { RTOKEN(COPY);}
- YY_BREAK
- case 84:
- YY_USER_ACTION
- # line 247 "./ldlex.l"
- { RTOKEN(INFO);}
- YY_BREAK
- case 85:
- YY_USER_ACTION
- # line 248 "./ldlex.l"
- { RTOKEN(OVERLAY);}
- YY_BREAK
- case 86:
- YY_USER_ACTION
- # line 249 "./ldlex.l"
- { RTOKEN(ORIGIN);}
- YY_BREAK
- case 87:
- YY_USER_ACTION
- # line 250 "./ldlex.l"
- { RTOKEN(ORIGIN);}
- YY_BREAK
- case 88:
- YY_USER_ACTION
- # line 251 "./ldlex.l"
- { RTOKEN( LENGTH);}
- YY_BREAK
- case 89:
- YY_USER_ACTION
- # line 252 "./ldlex.l"
- { RTOKEN( LENGTH);}
- YY_BREAK
- case 90:
- YY_USER_ACTION
- # line 253 "./ldlex.l"
- { RTOKEN(INCLUDE);}
- YY_BREAK
- case 91:
- YY_USER_ACTION
- # line 254 "./ldlex.l"
- { RTOKEN(AT);}
- YY_BREAK
- case 92:
- YY_USER_ACTION
- # line 255 "./ldlex.l"
- { RTOKEN(PROVIDE); }
- YY_BREAK
- case 93:
- YY_USER_ACTION
- # line 256 "./ldlex.l"
- { ++ lineno; RTOKEN(NEWLINE); }
- YY_BREAK
- case 94:
- YY_USER_ACTION
- # line 257 "./ldlex.l"
- { ++ lineno; RTOKEN(NEWLINE); }
- YY_BREAK
- case 95:
- YY_USER_ACTION
- # line 258 "./ldlex.l"
- { /* Mri comment line */ }
- YY_BREAK
- case 96:
- YY_USER_ACTION
- # line 259 "./ldlex.l"
- { RTOKEN(ENDWORD); }
- YY_BREAK
- case 97:
- YY_USER_ACTION
- # line 260 "./ldlex.l"
- { RTOKEN(ALIGNMOD);}
- YY_BREAK
- case 98:
- YY_USER_ACTION
- # line 261 "./ldlex.l"
- { RTOKEN(ALIGN_K);}
- YY_BREAK
- case 99:
- YY_USER_ACTION
- # line 263 "./ldlex.l"
- { RTOKEN(CHIP); }
- YY_BREAK
- case 100:
- YY_USER_ACTION
- # line 264 "./ldlex.l"
- { RTOKEN(BASE); }
- YY_BREAK
- case 101:
- YY_USER_ACTION
- # line 265 "./ldlex.l"
- { RTOKEN(ALIAS); }
- YY_BREAK
- case 102:
- YY_USER_ACTION
- # line 266 "./ldlex.l"
- { RTOKEN(TRUNCATE); }
- YY_BREAK
- case 103:
- YY_USER_ACTION
- # line 267 "./ldlex.l"
- { RTOKEN(LOAD); }
- YY_BREAK
- case 104:
- YY_USER_ACTION
- # line 268 "./ldlex.l"
- { RTOKEN(PUBLIC); }
- YY_BREAK
- case 105:
- YY_USER_ACTION
- # line 269 "./ldlex.l"
- { RTOKEN(ORDER); }
- YY_BREAK
- case 106:
- YY_USER_ACTION
- # line 270 "./ldlex.l"
- { RTOKEN(NAMEWORD); }
- YY_BREAK
- case 107:
- YY_USER_ACTION
- # line 271 "./ldlex.l"
- { RTOKEN(FORMAT); }
- YY_BREAK
- case 108:
- YY_USER_ACTION
- # line 272 "./ldlex.l"
- { RTOKEN(LIST); /* LIST and ignore to end of line */ }
- YY_BREAK
- case 109:
- YY_USER_ACTION
- # line 273 "./ldlex.l"
- { RTOKEN(SECT); }
- YY_BREAK
- case 110:
- YY_USER_ACTION
- # line 274 "./ldlex.l"
- { RTOKEN(ABSOLUTE); }
- YY_BREAK
- case 111:
- YY_USER_ACTION
- # line 275 "./ldlex.l"
- { RTOKEN(ENDWORD); }
- YY_BREAK
- case 112:
- YY_USER_ACTION
- # line 276 "./ldlex.l"
- { RTOKEN(CHIP); }
- YY_BREAK
- case 113:
- YY_USER_ACTION
- # line 277 "./ldlex.l"
- { RTOKEN(LOAD); }
- YY_BREAK
- case 114:
- YY_USER_ACTION
- # line 278 "./ldlex.l"
- { RTOKEN(ORDER); }
- YY_BREAK
- case 115:
- YY_USER_ACTION
- # line 279 "./ldlex.l"
- { RTOKEN(NAMEWORD); }
- YY_BREAK
- case 116:
- YY_USER_ACTION
- # line 280 "./ldlex.l"
- { RTOKEN(FORMAT); }
- YY_BREAK
- case 117:
- YY_USER_ACTION
- # line 281 "./ldlex.l"
- { RTOKEN(LIST); /* LIST and ignore to end of line */ }
- YY_BREAK
- case 118:
- YY_USER_ACTION
- # line 282 "./ldlex.l"
- { RTOKEN(SECT); }
- YY_BREAK
- case 119:
- YY_USER_ACTION
- # line 283 "./ldlex.l"
- { RTOKEN(ABSOLUTE); }
- YY_BREAK
- case 120:
- YY_USER_ACTION
- # line 285 "./ldlex.l"
- {
- /* Filename without commas, needed to parse mri stuff */
- yylval.name = buystring(yytext);
- return NAME;
- }
- YY_BREAK
- case 121:
- YY_USER_ACTION
- # line 292 "./ldlex.l"
- {
- yylval.name = buystring(yytext);
- return NAME;
- }
- YY_BREAK
- case 122:
- YY_USER_ACTION
- # line 296 "./ldlex.l"
- { yylval.name = buystring(yytext);
- return NAME;
- }
- YY_BREAK
- case 123:
- YY_USER_ACTION
- # line 300 "./ldlex.l"
- {
- /* No matter the state, quotes
- give what's inside */
- yylval.name = buystring(yytext+1);
- yylval.name[yyleng-2] = 0;
- return NAME;
- }
- YY_BREAK
- case 124:
- YY_USER_ACTION
- # line 307 "./ldlex.l"
- { lineno++;}
- YY_BREAK
- case 125:
- YY_USER_ACTION
- # line 308 "./ldlex.l"
- { lineno++;}
- YY_BREAK
- case 126:
- YY_USER_ACTION
- # line 309 "./ldlex.l"
-
- YY_BREAK
- case YY_STATE_EOF(INITIAL):
- case YY_STATE_EOF(SCRIPT):
- case YY_STATE_EOF(EXPRESSION):
- case YY_STATE_EOF(BOTH):
- case YY_STATE_EOF(DEFSYMEXP):
- case YY_STATE_EOF(MRI):
- # line 311 "./ldlex.l"
- {
- include_stack_ptr--;
-
- if (include_stack_ptr == 0)
- {
- yyterminate();
- }
- else
- {
- yy_switch_to_buffer(include_stack[include_stack_ptr]);
-
- }
- BEGIN(SCRIPT);
- ldfile_input_filename = file_name_stack[include_stack_ptr - 1];
- lineno = lineno_stack[include_stack_ptr - 1];
-
- return END;
- }
- YY_BREAK
- case 127:
- YY_USER_ACTION
- # line 330 "./ldlex.l"
- lex_warn_invalid(" in script", yytext);
- YY_BREAK
- case 128:
- YY_USER_ACTION
- # line 331 "./ldlex.l"
- lex_warn_invalid(" in expression", yytext);
- YY_BREAK
- case 129:
- YY_USER_ACTION
- # line 333 "./ldlex.l"
- ECHO;
- YY_BREAK
-
- case YY_END_OF_BUFFER:
- {
- /* Amount of text matched not including the EOB char. */
- int yy_amount_of_matched_text = yy_cp - yytext_ptr - 1;
-
- /* Undo the effects of YY_DO_BEFORE_ACTION. */
- *yy_cp = yy_hold_char;
-
- if ( yy_current_buffer->yy_input_file != yyin )
- {
- /* This can happen if we scan a file, yywrap() returns
- * 1, and then later the user points yyin at a new
- * file to resume scanning. We have to assure
- * consistency between yy_current_buffer and our
- * globals. Here is the right place to do so, because
- * this is the first action (other than possibly a
- * back-up) that will match for the new input file.
- */
- yy_current_buffer->yy_input_file = yyin;
- yy_n_chars = yy_current_buffer->yy_n_chars;
- }
-
- /* Note that here we test for yy_c_buf_p "<=" to the position
- * of the first EOB in the buffer, since yy_c_buf_p will
- * already have been incremented past the NUL character
- * (since all states make transitions on EOB to the
- * end-of-buffer state). Contrast this with the test
- * in input().
- */
- if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
- { /* This was really a NUL. */
- yy_state_type yy_next_state;
-
- yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
-
- yy_current_state = yy_get_previous_state();
-
- /* Okay, we're now positioned to make the NUL
- * transition. We couldn't have
- * yy_get_previous_state() go ahead and do it
- * for us because it doesn't know how to deal
- * with the possibility of jamming (and we don't
- * want to build jamming into it because then it
- * will run more slowly).
- */
-
- yy_next_state = yy_try_NUL_trans( yy_current_state );
-
- yy_bp = yytext_ptr + YY_MORE_ADJ;
-
- if ( yy_next_state )
- {
- /* Consume the NUL. */
- yy_cp = ++yy_c_buf_p;
- yy_current_state = yy_next_state;
- goto yy_match;
- }
-
- else
- {
- goto yy_find_action;
- }
- }
-
- else switch ( yy_get_next_buffer() )
- {
- case EOB_ACT_END_OF_FILE:
- {
- yy_did_buffer_switch_on_eof = 0;
-
- if ( yywrap() )
- {
- /* Note: because we've taken care in
- * yy_get_next_buffer() to have set up
- * yytext, we can now set up
- * yy_c_buf_p so that if some total
- * hoser (like flex itself) wants to
- * call the scanner after we return the
- * YY_NULL, it'll still work - another
- * YY_NULL will get returned.
- */
- yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
-
- yy_act = YY_STATE_EOF(YY_START);
- goto do_action;
- }
-
- else
- {
- if ( ! yy_did_buffer_switch_on_eof )
- YY_NEW_FILE;
- }
- break;
- }
-
- case EOB_ACT_CONTINUE_SCAN:
- yy_c_buf_p =
- yytext_ptr + yy_amount_of_matched_text;
-
- yy_current_state = yy_get_previous_state();
-
- yy_cp = yy_c_buf_p;
- yy_bp = yytext_ptr + YY_MORE_ADJ;
- goto yy_match;
-
- case EOB_ACT_LAST_MATCH:
- yy_c_buf_p =
- &yy_current_buffer->yy_ch_buf[yy_n_chars];
-
- yy_current_state = yy_get_previous_state();
-
- yy_cp = yy_c_buf_p;
- yy_bp = yytext_ptr + YY_MORE_ADJ;
- goto yy_find_action;
- }
- break;
- }
-
- default:
- YY_FATAL_ERROR(
- "fatal flex scanner internal error--no action found" );
- } /* end of action switch */
- } /* end of scanning one token */
- } /* end of yylex */
-
-
- /* yy_get_next_buffer - try to read in a new buffer
- *
- * Returns a code representing an action:
- * EOB_ACT_LAST_MATCH -
- * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
- * EOB_ACT_END_OF_FILE - end of file
- */
-
- static int yy_get_next_buffer()
- {
- register char *dest = yy_current_buffer->yy_ch_buf;
- register char *source = yytext_ptr - 1; /* copy prev. char, too */
- register int number_to_move, i;
- int ret_val;
-
- if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
- YY_FATAL_ERROR(
- "fatal flex scanner internal error--end of buffer missed" );
-
- if ( yy_current_buffer->yy_fill_buffer == 0 )
- { /* Don't try to fill the buffer, so this is an EOF. */
- if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
- {
- /* We matched a singled characater, the EOB, so
- * treat this as a final EOF.
- */
- return EOB_ACT_END_OF_FILE;
- }
-
- else
- {
- /* We matched some text prior to the EOB, first
- * process it.
- */
- return EOB_ACT_LAST_MATCH;
- }
- }
-
- /* Try to read more data. */
-
- /* First move last chars to start of buffer. */
- number_to_move = yy_c_buf_p - yytext_ptr;
-
- for ( i = 0; i < number_to_move; ++i )
- *(dest++) = *(source++);
-
- if ( yy_current_buffer->yy_eof_status != EOF_NOT_SEEN )
- /* don't do the read, it's not guaranteed to return an EOF,
- * just force an EOF
- */
- yy_n_chars = 0;
-
- else
- {
- int num_to_read =
- yy_current_buffer->yy_buf_size - number_to_move - 1;
-
- while ( num_to_read <= 0 )
- { /* Not enough room in the buffer - grow it. */
- #ifdef YY_USES_REJECT
- YY_FATAL_ERROR(
- "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
- #else
-
- /* just a shorter name for the current buffer */
- YY_BUFFER_STATE b = yy_current_buffer;
-
- int yy_c_buf_p_offset = yy_c_buf_p - b->yy_ch_buf;
-
- b->yy_buf_size *= 2;
- b->yy_ch_buf = (char *)
- yy_flex_realloc( (void *) b->yy_ch_buf,
- b->yy_buf_size );
-
- if ( ! b->yy_ch_buf )
- YY_FATAL_ERROR(
- "fatal error - scanner input buffer overflow" );
-
- yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
-
- num_to_read = yy_current_buffer->yy_buf_size -
- number_to_move - 1;
- #endif
- }
-
- if ( num_to_read > YY_READ_BUF_SIZE )
- num_to_read = YY_READ_BUF_SIZE;
-
- /* Read in more data. */
- YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
- yy_n_chars, num_to_read );
- }
-
- if ( yy_n_chars == 0 )
- {
- if ( number_to_move - YY_MORE_ADJ == 1 )
- {
- ret_val = EOB_ACT_END_OF_FILE;
- yyrestart( yyin );
- }
-
- else
- {
- ret_val = EOB_ACT_LAST_MATCH;
- yy_current_buffer->yy_eof_status = EOF_PENDING;
- }
- }
-
- else
- ret_val = EOB_ACT_CONTINUE_SCAN;
-
- yy_n_chars += number_to_move;
- yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
- yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
-
- /* yytext begins at the second character in yy_ch_buf; the first
- * character is the one which preceded it before reading in the latest
- * buffer; it needs to be kept around in case it's a newline, so
- * yy_get_previous_state() will have with '^' rules active.
- */
-
- yytext_ptr = &yy_current_buffer->yy_ch_buf[1];
-
- return ret_val;
- }
-
-
- /* yy_get_previous_state - get the state just before the EOB char was reached */
-
- static yy_state_type yy_get_previous_state()
- {
- register yy_state_type yy_current_state;
- register char *yy_cp;
-
- yy_current_state = yy_start;
-
- for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
- {
- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
- if ( yy_accept[yy_current_state] )
- {
- yy_last_accepting_state = yy_current_state;
- yy_last_accepting_cpos = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 826 )
- yy_c = yy_meta[(unsigned int) yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
- }
-
- return yy_current_state;
- }
-
-
- /* yy_try_NUL_trans - try to make a transition on the NUL character
- *
- * synopsis
- * next_state = yy_try_NUL_trans( current_state );
- */
-
- #ifdef YY_USE_PROTOS
- static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
- #else
- static yy_state_type yy_try_NUL_trans( yy_current_state )
- yy_state_type yy_current_state;
- #endif
- {
- register int yy_is_jam;
- register char *yy_cp = yy_c_buf_p;
-
- register YY_CHAR yy_c = 1;
- if ( yy_accept[yy_current_state] )
- {
- yy_last_accepting_state = yy_current_state;
- yy_last_accepting_cpos = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 826 )
- yy_c = yy_meta[(unsigned int) yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
- yy_is_jam = (yy_current_state == 825);
-
- return yy_is_jam ? 0 : yy_current_state;
- }
-
-
- #ifdef YY_USE_PROTOS
- static void yyunput( int c, register char *yy_bp )
- #else
- static void yyunput( c, yy_bp )
- int c;
- register char *yy_bp;
- #endif
- {
- register char *yy_cp = yy_c_buf_p;
-
- /* undo effects of setting up yytext */
- *yy_cp = yy_hold_char;
-
- if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
- { /* need to shift things up to make room */
- /* +2 for EOB chars. */
- register int number_to_move = yy_n_chars + 2;
- register char *dest = &yy_current_buffer->yy_ch_buf[
- yy_current_buffer->yy_buf_size + 2];
- register char *source =
- &yy_current_buffer->yy_ch_buf[number_to_move];
-
- while ( source > yy_current_buffer->yy_ch_buf )
- *--dest = *--source;
-
- yy_cp += dest - source;
- yy_bp += dest - source;
- yy_n_chars = yy_current_buffer->yy_buf_size;
-
- if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
- YY_FATAL_ERROR( "flex scanner push-back overflow" );
- }
-
- if ( yy_cp > yy_bp && yy_cp[-1] == '\n' )
- yy_cp[-2] = '\n';
-
- *--yy_cp = (char) c;
-
-
- /* Note: the formal parameter *must* be called "yy_bp" for this
- * macro to now work correctly.
- */
- YY_DO_BEFORE_ACTION; /* set up yytext again */
- }
-
-
- #ifdef __cplusplus
- static int yyinput()
- #else
- static int input()
- #endif
- {
- int c;
-
- *yy_c_buf_p = yy_hold_char;
-
- if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
- {
- /* yy_c_buf_p now points to the character we want to return.
- * If this occurs *before* the EOB characters, then it's a
- * valid NUL; if not, then we've hit the end of the buffer.
- */
- if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
- /* This was really a NUL. */
- *yy_c_buf_p = '\0';
-
- else
- { /* need more input */
- yytext_ptr = yy_c_buf_p;
- ++yy_c_buf_p;
-
- switch ( yy_get_next_buffer() )
- {
- case EOB_ACT_END_OF_FILE:
- {
- if ( yywrap() )
- {
- yy_c_buf_p =
- yytext_ptr + YY_MORE_ADJ;
- return EOF;
- }
-
- YY_NEW_FILE;
- #ifdef __cplusplus
- return yyinput();
- #else
- return input();
- #endif
- }
-
- case EOB_ACT_CONTINUE_SCAN:
- yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
- break;
-
- case EOB_ACT_LAST_MATCH:
- #ifdef __cplusplus
- YY_FATAL_ERROR(
- "unexpected last match in yyinput()" );
- #else
- YY_FATAL_ERROR(
- "unexpected last match in input()" );
- #endif
- }
- }
- }
-
- c = *yy_c_buf_p;
- *yy_c_buf_p = '\0'; /* preserve yytext */
- yy_hold_char = *++yy_c_buf_p;
-
- return c;
- }
-
-
- #ifdef YY_USE_PROTOS
- void yyrestart( FILE *input_file )
- #else
- void yyrestart( input_file )
- FILE *input_file;
- #endif
- {
- if ( ! yy_current_buffer )
- yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
-
- yy_init_buffer( yy_current_buffer, input_file );
- yy_load_buffer_state();
- }
-
-
- #ifdef YY_USE_PROTOS
- void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
- #else
- void yy_switch_to_buffer( new_buffer )
- YY_BUFFER_STATE new_buffer;
- #endif
- {
- if ( yy_current_buffer == new_buffer )
- return;
-
- if ( yy_current_buffer )
- {
- /* Flush out information for old buffer. */
- *yy_c_buf_p = yy_hold_char;
- yy_current_buffer->yy_buf_pos = yy_c_buf_p;
- yy_current_buffer->yy_n_chars = yy_n_chars;
- }
-
- yy_current_buffer = new_buffer;
- yy_load_buffer_state();
-
- /* We don't actually know whether we did this switch during
- * EOF (yywrap()) processing, but the only time this flag
- * is looked at is after yywrap() is called, so it's safe
- * to go ahead and always set it.
- */
- yy_did_buffer_switch_on_eof = 1;
- }
-
-
- #ifdef YY_USE_PROTOS
- void yy_load_buffer_state( void )
- #else
- void yy_load_buffer_state()
- #endif
- {
- yy_n_chars = yy_current_buffer->yy_n_chars;
- yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
- yyin = yy_current_buffer->yy_input_file;
- yy_hold_char = *yy_c_buf_p;
- }
-
-
- #ifdef YY_USE_PROTOS
- YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
- #else
- YY_BUFFER_STATE yy_create_buffer( file, size )
- FILE *file;
- int size;
- #endif
- {
- YY_BUFFER_STATE b;
-
- b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
-
- if ( ! b )
- YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
-
- b->yy_buf_size = size;
-
- /* yy_ch_buf has to be 2 characters longer than the size given because
- * we need to put in 2 end-of-buffer characters.
- */
- b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
-
- if ( ! b->yy_ch_buf )
- YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
-
- yy_init_buffer( b, file );
-
- return b;
- }
-
-
- #ifdef YY_USE_PROTOS
- void yy_delete_buffer( YY_BUFFER_STATE b )
- #else
- void yy_delete_buffer( b )
- YY_BUFFER_STATE b;
- #endif
- {
- if ( b == yy_current_buffer )
- yy_current_buffer = (YY_BUFFER_STATE) 0;
-
- yy_flex_free( (void *) b->yy_ch_buf );
- yy_flex_free( (void *) b );
- }
-
-
- #ifdef YY_USE_PROTOS
- void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
- #else
- void yy_init_buffer( b, file )
- YY_BUFFER_STATE b;
- FILE *file;
- #endif
- {
- b->yy_input_file = file;
-
- /* We put in the '\n' and start reading from [1] so that an
- * initial match-at-newline will be true.
- */
-
- b->yy_ch_buf[0] = '\n';
- b->yy_n_chars = 1;
-
- /* We always need two end-of-buffer characters. The first causes
- * a transition to the end-of-buffer state. The second causes
- * a jam in that state.
- */
- b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
- b->yy_ch_buf[2] = YY_END_OF_BUFFER_CHAR;
-
- b->yy_buf_pos = &b->yy_ch_buf[1];
-
- b->yy_is_interactive = file ? isatty( fileno(file) ) : 0;
-
- b->yy_fill_buffer = 1;
-
- b->yy_eof_status = EOF_NOT_SEEN;
- }
-
-
- #ifdef YY_USE_PROTOS
- static void yy_push_state( int new_state )
- #else
- static void yy_push_state( new_state )
- int new_state;
- #endif
- {
- if ( yy_start_stack_ptr >= yy_start_stack_depth )
- {
- int new_size;
-
- yy_start_stack_depth += YY_START_STACK_INCR;
- new_size = yy_start_stack_depth * sizeof( int );
-
- if ( ! yy_start_stack )
- yy_start_stack = (int *) yy_flex_alloc( new_size );
-
- else
- yy_start_stack = (int *) yy_flex_realloc(
- (void *) yy_start_stack, new_size );
-
- if ( ! yy_start_stack )
- YY_FATAL_ERROR(
- "out of memory expanding start-condition stack" );
- }
-
- yy_start_stack[yy_start_stack_ptr++] = YY_START;
-
- BEGIN(new_state);
- }
-
-
- static void yy_pop_state()
- {
- if ( --yy_start_stack_ptr < 0 )
- YY_FATAL_ERROR( "start-condition stack underflow" );
-
- BEGIN(yy_start_stack[yy_start_stack_ptr]);
- }
-
-
- static int yy_top_state()
- {
- return yy_start_stack[yy_start_stack_ptr - 1];
- }
-
-
- #ifdef YY_USE_PROTOS
- static void yy_fatal_error( const char msg[] )
- #else
- static void yy_fatal_error( msg )
- char msg[];
- #endif
- {
- (void) fprintf( stderr, "%s\n", msg );
- exit( 1 );
- }
-
-
-
- /* Redefine yyless() so it works in section 3 code. */
-
- #undef yyless
- #define yyless(n) \
- do \
- { \
- /* Undo effects of setting up yytext. */ \
- yytext[yyleng] = yy_hold_char; \
- yy_c_buf_p = yytext + n - YY_MORE_ADJ; \
- yy_hold_char = *yy_c_buf_p; \
- *yy_c_buf_p = '\0'; \
- yyleng = n; \
- } \
- while ( 0 )
-
-
- /* Internal utility routines. */
-
- #ifndef yytext_ptr
- #ifdef YY_USE_PROTOS
- static void yy_flex_strcpy( char *s1, const char *s2 )
- #else
- static void yy_flex_strcpy( s1, s2 )
- char *s1;
- const char *s2;
- #endif
- {
- while ( (*(s1++) = *(s2++)) )
- ;
- }
- #endif
-
-
- #ifdef YY_USE_PROTOS
- static void *yy_flex_alloc( unsigned int size )
- #else
- static void *yy_flex_alloc( size )
- unsigned int size;
- #endif
- {
- return (void *) xmalloc( size );
- }
-
- #ifdef YY_USE_PROTOS
- static void *yy_flex_realloc( void *ptr, unsigned int size )
- #else
- static void *yy_flex_realloc( ptr, size )
- void *ptr;
- unsigned int size;
- #endif
- {
- return (void *) realloc( ptr, size );
- }
-
- #ifdef YY_USE_PROTOS
- static void yy_flex_free( void *ptr )
- #else
- static void yy_flex_free( ptr )
- void *ptr;
- #endif
- {
- free( ptr );
- }
- # line 333 "./ldlex.l"
-
-
-
- /* Switch flex to reading script file NAME, open on FILE,
- saving the current input info on the include stack. */
-
- void
- lex_push_file (file, name)
- FILE *file;
- const char *name;
- {
- if (include_stack_ptr >= MAX_INCLUDE_DEPTH)
- {
- einfo("%F:includes nested too deeply\n");
- }
- file_name_stack[include_stack_ptr] = name;
- lineno_stack[include_stack_ptr] = 1;
- include_stack[include_stack_ptr] = YY_CURRENT_BUFFER;
-
- include_stack_ptr++;
- yyin = file;
- yy_switch_to_buffer(yy_create_buffer(yyin, YY_BUF_SIZE));
- BEGIN (SCRIPT);
- }
-
- /* Return a newly created flex input buffer containing STRING,
- which is SIZE bytes long. */
-
- static YY_BUFFER_STATE
- yy_create_string_buffer (string, size)
- CONST char *string;
- size_t size;
- {
- YY_BUFFER_STATE b;
-
- /* Calls to m-alloc get turned by sed into xm-alloc. */
- b = (YY_BUFFER_STATE) xmalloc (sizeof (struct yy_buffer_state));
- b->yy_input_file = 0;
- b->yy_buf_size = size;
-
- /* yy_ch_buf has to be 2 characters longer than the size given because
- we need to put in 2 end-of-buffer characters. */
- b->yy_ch_buf = (char *) xmalloc ((unsigned) (b->yy_buf_size + 3));
-
- b->yy_ch_buf[0] = '\n';
- strcpy (b->yy_ch_buf+1, string);
- b->yy_ch_buf[size+1] = YY_END_OF_BUFFER_CHAR;
- b->yy_ch_buf[size+2] = YY_END_OF_BUFFER_CHAR;
- b->yy_n_chars = size+1;
- b->yy_buf_pos = &b->yy_ch_buf[1];
-
- /* flex 2.4.7 changed the interface. FIXME: We should not be using
- a flex internal interface in the first place! */
- #ifdef YY_BUFFER_NEW
- b->yy_buffer_status = YY_BUFFER_NEW;
- #else
- b->yy_eof_status = EOF_NOT_SEEN;
- #endif
-
- return b;
- }
-
- /* Switch flex to reading from STRING, saving the current input info
- on the include stack. */
-
- void
- lex_redirect (string)
- CONST char *string;
- {
- YY_BUFFER_STATE tmp;
-
- yy_init = 0;
- if (include_stack_ptr >= MAX_INCLUDE_DEPTH)
- {
- einfo("%F: macros nested too deeply\n");
- }
- file_name_stack[include_stack_ptr] = "redirect";
- lineno_stack[include_stack_ptr] = 0;
- include_stack[include_stack_ptr] = YY_CURRENT_BUFFER;
- include_stack_ptr++;
- tmp = yy_create_string_buffer (string, strlen (string));
- yy_switch_to_buffer (tmp);
- BEGIN (SCRIPT);
- }
-
- /* Functions to switch to a different flex start condition,
- saving the current start condition on `state_stack'. */
-
- static int state_stack[MAX_INCLUDE_DEPTH * 2];
- static int *state_stack_p = state_stack;
-
- void
- ldlex_script ()
- {
- *(state_stack_p)++ = yy_start;
- BEGIN (SCRIPT);
- }
-
- void
- ldlex_mri_script ()
- {
- *(state_stack_p)++ = yy_start;
- BEGIN (MRI);
- }
-
- void
- ldlex_defsym ()
- {
- *(state_stack_p)++ = yy_start;
- BEGIN (DEFSYMEXP);
- }
-
- void
- ldlex_expression ()
- {
- *(state_stack_p)++ = yy_start;
- BEGIN (EXPRESSION);
- }
-
- void
- ldlex_both ()
- {
- *(state_stack_p)++ = yy_start;
- BEGIN (BOTH);
- }
-
- void
- ldlex_popstate ()
- {
- yy_start = *(--state_stack_p);
- }
-
-
- /* Place up to MAX_SIZE characters in BUF and return in *RESULT
- either the number of characters read, or 0 to indicate EOF. */
-
- static void
- yy_input (buf, result, max_size)
- char *buf;
- int *result;
- int max_size;
- {
- *result = 0;
- if (yy_current_buffer->yy_input_file)
- {
- if (yyin)
- {
- *result = read (fileno (yyin), (char *) buf, max_size);
- if (*result < 0)
- einfo ("%F%P: read in flex scanner failed");
- }
- }
- }
-
- /* Eat the rest of a C-style comment. */
-
- static void
- comment ()
- {
- int c;
-
- while (1)
- {
- c = input();
- while (c != '*' && c != EOF)
- {
- if (c == '\n' || c == '\r')
- lineno++;
- c = input();
- }
-
- if (c == '*')
- {
- c = input();
- while (c == '*')
- c = input();
- if (c == '/')
- break; /* found the end */
- }
-
- if (c == '\n' || c == '\r')
- lineno++;
-
- if (c == EOF)
- {
- einfo( "%F%P: EOF in comment\n");
- break;
- }
- }
- }
-
- /* Warn the user about a garbage character WHAT in the input
- in context WHERE. */
-
- static void
- lex_warn_invalid (where, what)
- char *where, *what;
- {
- char buf[5];
-
- /* If we have found an input file whose format we do not recognize,
- and we are therefore treating it as a linker script, and we find
- an invalid character, then most likely this is a real object file
- of some different format. Treat it as such. */
- if (ldfile_assumed_script)
- {
- bfd_set_error (bfd_error_file_not_recognized);
- einfo ("%F%s: file not recognized: %E\n", ldfile_input_filename);
- }
-
- if (! isprint ((unsigned char) *what))
- {
- sprintf (buf, "\\%03o", (unsigned int) *what);
- what = buf;
- }
-
- einfo ("%P:%S: ignoring invalid character `%s'%s\n", what, where);
- }
-